CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
793 stars 104 forks source link

XMLChoiceDecodingContainer fails to check availability #276

Closed Treata11 closed 10 months ago

Treata11 commented 10 months ago

XMLChoiceDecodingContainer

The func contains(_ key: Key) -> Bool in XMLChoiceDecodingContainer.swift does not work at all.

public func contains(_ key: Key) -> Bool {
    return container.withShared { $0.key == key.stringValue }
}

Always returns false.