What is Nostr?
David Beck :xcode: /
npub1x3l…nlv0
2024-11-20 18:51:09

David Beck :xcode: on Nostr: I think I just realized when Swift's type system goes from helpful to hurtful: when ...

I think I just realized when Swift's type system goes from helpful to hurtful: when it stops being self documenting.

For instance, with a UILabel you can look at the type and know exactly what you can do with it. It has a lineBreakStrategy property, so you know that can be customized.

On the other hand, SwiftUI Text has almost no properties outside of what it inherits from View. So like a giant box of legos, you have to go searching for the modifiers that apply to Text.
Author Public Key
npub1x3l9d6qc25r7q4plwzhgfwuhea057gadg7pd4tx5x7k98g23jc6qagnlv0