Updated for Xcode 13.3
We’ve covered a lot about the basics of data in the previous chapters, so let’s recap:
let, and variables using
letso that Swift can help you avoid mistakes.
Double, short for double-length floating-point number. That means they can hold very large numbers if needed, but they also aren’t 100% accurate – you shouldn’t use them when 100% precision is required, such as when dealing with money.
/, along with the special compound assignment operators such as
+=that modify variables directly.
!operator or by calling
It’s a lot, right? And that’s okay – you’ll be using everything from that list time and time again as you build apps, until eventually you’ll understand it all without needing to refer back here.
SPONSORED Spend less time managing in-app purchase infrastructure so you can focus on building your app. RevenueCat gives everything you need to easily implement, manage, and analyze in-app purchases and subscriptions without managing servers or writing backend code.
Link copied to your pasteboard.