Posts

Showing posts from May, 2017

Swift Basic Concepts

The Basics Swift is a new programming language for iOS, macOS, watchOS, and tvOS app development. Nonetheless, many parts of Swift will be familiar from your experience of developing in C and Objective-C. Swift provides its own versions of all fundamental C and Objective-C types, including  Int  for integers,  Double and  Float  for floating-point values,  Bool  for Boolean values, and  String  for textual data. Swift also provides powerful versions of the three primary collection types,  Array ,  Set , and  Dictionary , as described in  Collection Types . Like C, Swift uses variables to store and refer to values by an identifying name. Swift also makes extensive use of variables whose values cannot be changed. These are known as constants, and are much more powerful than constants in C. Constants are used throughout Swift to make code safer and clearer in intent when you work with values that do not need to chang...