You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SwiftObjects started to fail to build w/ 5.2 because `objectValue(_ s: String)` was made unavailable:
@available(*, unavailable, message: "Use each formatter's class and instance methods instead.")
openfuncobjectValue(_string: String) throws -> Any? {
NSUnsupported()
}
You still provide a generic `string(for🙂`, why did you drop the reverse? It's the sole purpose of the base class to provide those abstract methods to allow the user to interchange the implementations.
objectValue(_ s: String) has been unavailable since before 5.2, I think the issue is that DateComponentsFormatter and PersonNameComponentsFormatter were marked unavailable in 5.2
According to my code the regular Cocoa `getObjectValue` was unavailable, but `objectValue`was available. This only started to break w/ 5.2 as far as I can tell.
And FWIW I'd prefer if the regular `getObjectValue` would be available. Using specific classes renders the base class useless and is inconsistent with the string-for Any variant, which is available and doesn't require using hardcoded implementations.
Environment
Linux Swift 5.2
Additional Detail from JIRA
md5: af98a313f72a48ac3f902a8aceaa69be
Issue Description:
SwiftObjects started to fail to build w/ 5.2 because `objectValue(_ s: String)` was made unavailable:
You still provide a generic `string(for🙂`, why did you drop the reverse? It's the sole purpose of the base class to provide those abstract methods to allow the user to interchange the implementations.
Used in here: https://github.com/SwiftObjects/SwiftObjects/blob/master/Sources/SwiftObjects/Elements/Formatters/WOFormatter.swift#L83
The text was updated successfully, but these errors were encountered: