Quantcast
Channel: iOS-Blog » Tutorials
Viewing all articles
Browse latest Browse all 18

Swift: Type Annotations

$
0
0
Type Annotations in Swift are a really useful way to make sure that the specified value matched that of the expected value. This is extremely useful when using functions and declaring your variables. So what are type annotations? Well they are a simple way to specify what value should be going into your variables and constants. Now, swift is a type safe language which means that you must assign a value that is the type of the annotated variable. You ...

Viewing all articles
Browse latest Browse all 18

Trending Articles