Apple may be about to fix two of SwiftUIs biggest blind spots - 9to5Mac

While in today’s edition of Power On, Mark Gurman mentioned a quiet but meaningful upgrade coming to Apple’s SwiftUI framework, 9to5Mac has learned of a second welcome improvement for developers who have been eager but unable to go all-in on SwiftUI app development.For years, SwiftUI has been marketed as the future of Apple app development: a modern way to build user interfaces that works across all Apple platforms.And for the most part, it does the job.

Until you need to do something incredibly advanced like… support bold or italic text input, or embed web views.Finally, a built-in rich text editor Rich text has been one of SwiftUI’s biggest blind spots.It has had  rich text for a while, but nothing for .

And since there’s no built-in component specifically for that, developers have had to jump through hoops, mixing their code with good old UIKit, using third-party libraries, or hacking together awkward workarounds that break SwiftUI’s clean, platform-native feel.However, according to Gurman, this may be about to change: With a native rich text editor support reportedly on the way, Apple might finally be closing one of the most frustrating gaps in the framework.It’s a small change that might unlock a lot: better input fields for notes, messaging apps, documents, all without having to abandon SwiftUI’s declarative flow.

Finally, web view embedding Adding to today’s report, 9to5Mac has also learned that Apple is preparing a new native API that will finally let developers embed web views in SwiftUI.Like with rich text support, this means developers won’t have to keep resorting to hacks or bridging UIKit code just to display a webpage.You can check the new code by yourself on WebKit’s GitHub page.

These kinds of friction points are exactly what’s kept many developers from fully embracing SwiftUI.And while today’s news checks off just two long-standing items on their long wish lists, it might be enough to bring a few more of them onboard, which means better app experiences across the board for the rest of us.  You’re reading 9to5Mac — experts who break news about Apple and its surrounding ecosystem, day after day.

Be sure to check out our homepage for all the latest news, and follow 9to5Mac on Twitter, Facebook, and LinkedIn to stay in the loop.Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Read More
Related Posts