CoreOffice / XMLCoder

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

XMLChoiceDecodingContainer fails to check availability #276

Closed Treata11 closed 1 year ago

Treata11 commented 1 year 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.