BLACK FRIDAY SALE: Save big on all my Swift books and bundles! >>

DAY 63

Project 13, part 2


Today we continue examining our project’s techniques, and we’re starting to venture more into places where SwiftUI feels a bit less pleasing to work with. Today you’re going to see how Core Image integrates with SwiftUI, and the answer is “not very well”. We’re also going to start looking at how UIKit integrates with SwiftUI, and again the answer isn’t great – we need to put in quite some work to squeeze UIKit’s round peg into a SwiftUI-shaped hole.

Would I want to see something better here? Absolutely – and perhaps it will come in a future update to SwiftUI. But there’s an anonymous saying I think fits well here: “never let the things you want make you forget the things you have.”

Yes, SwiftUI’s integration with other frameworks is a little shaky right now, but that doesn’t mean it should detract from the rest of the great work SwiftUI does for us.

Today you have just two topics to work through, in which you’ll learn how to manipulate images using Core Image, and how to wrap UIKit code for SwiftUI.

If you have some spare time, try experimenting with Core Image and seeing what you can do – screenshots are always fun to share!

Share your progress!

If you use Twitter, the button below will prepare a tweet saying you completed today, along with a celebratory graphic, the URL to this page, and the challenge hashtag. Don't worry – it won't be sent until you confirm on Twitter!

Need help? Tweet me @twostraws!

 

Hacking with Swift is sponsored by RevenueCat

SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo.

Learn more

Sponsor Hacking with Swift and reach the world's largest Swift community!

100 Days of SwiftUI


The 100 Days of SwiftUI is a free collection of videos, tutorials, tests, and more to help you learn SwiftUI faster. Click here to learn more, or watch the video below.

Back to 100 Days of SwiftUI

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.