3 ms·
My personal showstopper was dealing with attributed strings. I couldn’t get an equivalent of multiline uitextview of attributed string. It happened after just 2
by bsaul 7y ago
My personal showstopper was dealing with attributed strings. I couldn’t get an equivalent of multiline uitextview of attributed string. It happened after just 20 minutes building a real world app, which made me wonder if anyone has ever built anything real at apple with this framework.
(Also, i couldn’t get a list of all the types of views and their documentation anywhere in apple’s documentation).
- Razengan 7y agoYou can have attributed strings! After a fashion: Text("Hello,").italic() + Text("World!").fontWeight(.bold) Works with multiple lines, multiple font sizes etc. Another undocumented gem that I discovered via the SwiftUI community. You should be able to build a constructor that reads a string with formatting codes like Markdown and spits multiple Text views.