Online Library TheLib.net » Beginning Swift: Master the fundamentals of programming in Swift 4
Intro -- Preface -- Swift Basics -- Swift Program Structure -- Hello, World! -- Swift Variables and Constants -- Declaring Swift Variables -- Variables Versus Constants -- Type Inference -- Variable Naming -- Working with Variables -- Tuples -- Creating a Tuple -- Optionals -- Declaring an Optional -- Working with Optionals -- Optional nil Values -- Accessing Optional Values -- Force Unwrapping an Optional -- Conditionally Unwrapping Optionals -- The Swift guard Statement -- Activity: Variable Summary -- Swift Data Types -- Numeric Data Types -- Int on 64-Bit Versus 32-Bit Platforms -- Built-In Numeric Data Types -- Choosing the Appropriate Numeric Data Type -- Declaring and Assigning Integer Variables -- Declaring and Assigning Floating Point Numbers -- Numeric Literal Grouping -- Numeric Type Conversions -- Boolean -- Character -- Assigning a Character -- Constructing a Character Literal -- String -- Instantiating a String -- String Concatenation -- Extracting Characters -- String Length -- Activity: Data Type Summary -- Enums -- Basic Enum Syntax -- Enum with Raw Values -- Activity: Using Swift Enums -- Summary -- Swift Operators and Control Flow -- Swift Operators -- Assignment Operator -- Arithmetic Operators -- Standard Arithmetic Operators -- Remainder Operator -- Unary minus Operator -- Compound Assignment Operators -- Comparison Operators -- Equality -- Inequality -- Comparison between Two Values -- Ternary Conditional Operator -- Logical Operators -- Bitwise Operators -- Nil-Coalescing Operator -- Range Operators -- Closed Range Operator -- Half-Open Range Operator -- One-Sided Range Operator -- Activity: Operators -- Branching -- The if Statement -- Condition Lists -- Optional Unwrapping with if -- The switch Statement -- switch Statement Rules -- The break Keyword -- The fallthrough Keyword -- Matching Non-Scalar Values.;Take your first foray into programming for Apple devices with Swift. Swift is fundamentally different from Objective-C, as it is a protocol-oriented language. While you can still write normal object-oriented code in Swift, it requires a new way of thinking to take advantage of its powerful features and a solid understanding of the basics to ...
Download the book Beginning Swift: Master the fundamentals of programming in Swift 4 for free or read online
Read Download

Continue reading on any device:
QR code
Last viewed books
Related books
Comments (0)
reload, if the code cannot be seen