SwiftUI
Interesting glitch with Measurement in SwiftUI
SwiftUI’s design takes advantage of equality to decide if things should be updated. Measurement (backed by NSMeasurement) has something interesting in its Equatable implementation: This means that 0kg is equal to 0g despite their unit being different. This makes sense for comparing weights but not for using it to decide Read more…