|
Hi all, In the following code, I want to force-unwrap a
However, just adding an exclamation mark after |
|
@Cas is sliding into trouble:
Take a look at SwiftUI documentation for a See -> Official Slider Documentation
The initializer will build a Even if you check to see that your Optional-Double does not contain Values of type Optional-Double do not conform to the |
|
|
|
|
|
Thank you for your reactions. I fixed it by making the optional a non-optional and giving it a default value, like NigelGee suggested. |
|
SPONSORED Transform your career with the iOS Lead Essentials. Unlock over 40 hours of expert training, mentorship, and community support to secure your place among the best devs. Click for early access to this limited offer and a FREE crash course.
Sponsor Hacking with Swift and reach the world's largest Swift community!
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.
Link copied to your pasteboard.