Tagged: Foundation

There are 6 items tagged #Foundation.
And there a lots of other tags to explore.

How to convert between NSAttributedString and AttributedString

SwiftUI lacks the support for the old NSAttributedString but fully supports this new type. On the other hand, UIKit supported NSAttributedString but lacked the support of AttributedString in most APIs. Learn how to convert between the two, so you can use any of them in the platform you want.

How to use NSAttributedString in SwiftUI

Learn how to use an old NSAttributedString inside a SwiftUI app.

How to use AttributedString in UIKit

Learn how to use the new AttributedString inside UIKit components.

What are Character and Run in AttributedString

Learn about the two important views in AttributedString, characters, and run.

AttributedString in iOS 15

Learn a new improvement struct of an NSAttributedString.

New Formatters in iOS 15: Why do we need another formatter

We have a new way to format data into a localized string in iOS 15. Why do we need another formatter? How does it differ from the old one? Let's find out.

See all tags.