Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MeasurementFormatter not support #2211

Open
miaoruiyuan opened this issue Mar 13, 2022 · 2 comments
Open

MeasurementFormatter not support #2211

miaoruiyuan opened this issue Mar 13, 2022 · 2 comments

Comments

@miaoruiyuan
Copy link

let numberFormatter = MeasurementFormatter()
let km = Measurement<UnitLength>(value: 2000, unit: .kilometers)
formatter = numberFormatter

its will crash

@miaoruiyuan
Copy link
Author

override func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, range rangep: UnsafeMutablePointer<NSRange>?)

How can I not use this protocol?

@mats-claassen
Copy link
Member

Have a look at #2047

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants