Categories
|
Swift - Introduction and Basics
Tags:
introduction, playgrounds, repl, variables, constants, int, float, bool, tuples, type aliases, type inference, type safety, type conversion, swift
Summary
This series of articles goes through the basics of Swift. It introduces Playgrounds and REPL; Variables and Constants; Int, Float, Bool; Tuples, Type Aliases, Type Inference, Type Safety, and more.
Articles in this Series
|
This article introduces the Playgrounds - a powerful tool to learn and play with Swift code. It also talks about REPL command line interpreter and IBM’s Swift Sandbox.
|
Test on playgrounds and REPL in Swift.
|
This article talks about variables and constants and how Swift forces you to choose var (a variable) or let (a constant) right at the time of declaration.
|
Test on variables (var) and constants (let) in Swift
|
This article discusses code commenting for various purposes, including generating documentation.
|
Test on comments, structured comments, and markup in Swift
|
This article goes through the usage of various integer types in Swift (including Int and UInt).
|
Test on Integer types in Swift.
|
This article talks about decimal numbers in Swift, including Float, Double, and CGFloat. Also talks about Binary, Octal, and Hexadecimal representations.
|
Test on Float and Double types in Swift, as well as binary, octal, and hex representations.
|
This article discusses the boolean types in Swift and contrasts with how these types are used in C and Objective-C.
|
Test on Boolean Types in Swift.
|
This article discusses the Tuple type which is introduced in Swift, but was not there in C or Objective-C.
|
Test on tuples in Swift.
|
This article talks about using a different name to refer to a type, by using typealias.
|
Test on using Type Aliases in Swift.
|
This article talks about miscellaneous topics and concepts in Swift: Type Inference, Type Aliases, Type Safety, and Type Conversion
|
This is a test on Type Inference, Type Safety, and Type Conversion in Swift.
|
|
Bookmark and Share This
|
|
|
|