NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>

DAY 64

Project 13, part 3


Believe it or not, we still have one more day of techniques for this project before we get into the implementation phase, and I’ve left the hardest stuff to the end.

Today you’re going to look at some of the complexities around how SwiftUI works with UIKit. If you’ve ever used UIKit before these things won’t be too taxing, but if UIKit is new to you then today might hurt almost as much as when you first met closures in Swift. Yes, really.

Stick with it! After today we’ll start putting all these concepts into action, so you’re really close to the fun part. Take your inspiration from the postage stamp – as the writer Josh Billings once quipped, “its usefulness consists in the ability to stick to one thing until it gets there.“

Today you have just two topics to work through, in which you’ll learn about coordinators, delegates, NSObject, @objc, selectors, and other things that go bump in the night.

I’d love to hear what you think of these APIs now that you’ve had some time with SwiftUI, whether or not you’ve used UIKit before. Send me a tweet!

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 Judo

SPONSORED Let’s face it, SwiftUI previews are limited, slow, and painful. Judo takes a different approach to building visually—think Interface Builder for SwiftUI. Build your interface in a completely visual canvas, then drag and drop into your Xcode project and wire up button clicks to custom code. Download the Mac App and start your free trial today!

Try now

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.