Post

Replies

Boosts

Views

Activity

Comment on Store SwiftUI Color in SwiftData
What floating point numbers? If you're talking about, say 0.9, then that's 0.9 * 256 = 230.4, you round it down and store 230, which is E6. Did you actually try my code, or just look at it and say it's essentially the same? I'm not sure you're explaining yourself properly. Can you show us some code that exhibits the issue?
Nov ’24