UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Using Beta 5 Xcode, coordinator example won't run

Forums > Swift

I swear I've got the code right from the lesson. When I break on buySubscription or createAccout, the coordinator varuable is nil. Does Paul store his code in git anywhere? I tried hackingwithswift but no joy. Is there another github I should be looking at? I wanted to diff the files to see if I've missed something.

I've learned something new, though, an optional value is just that. The program keeps running though the variable is nil. I expected I'd get an error. Now I know.

Best,

Glenn

2      

What tutorial are you refering to? What are the errors?

Optional value maybe be nil or have something there which is why you need to unwrap it.

PS you might be better doing the the tutorials in Xcode 11.6 as there maybe bugs in betas

2      

I'm using Paul's Coordinator tutorial. The simple one. I've got something wrong in my codeset where I plugged coordinators in and I hoped to get a basic example of it running, is all. Thanks for your advice. I appreciate it.

2      

Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.