Ebook: Beginning Swift: master the fundamentals of programming in Swift 4
Author: Kerr Rob, Morstøl Kåre
- Tags: Application software--Development, Computer programming--software development, Computer science, COMPUTERS--Programming Languages--General, Information technology: general issues, Mobile apps, Swift (Computer program language), Electronic books, iOS (Electronic resource), Application software -- Development, COMPUTERS -- Programming Languages -- General, Computer programming -- software development, IOS (Electronic resource)
- Year: 2018
- Publisher: Packt Publishing
- City: Birmingham;UK
- Language: English
- pdf
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
Continue reading on any device:
Last viewed books
Related books
{related-news}
Comments (0)