
Swift Pocket Reference
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Table of Contents
- Swift Pocket Reference
- Introduction
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Getting Started with Swift
- The Swift REPL
- Swift as a Scripting Language
- Swift Playgrounds
- A Taste of Swift
- Basic Language Features
- Comments
- Semicolons
- Whitespace
- Importing Code from Other Modules
- Types
- Specific Integer Types
- Numeric Literals
- Character and String Literals
- Type Aliases
- Nested Types
- Other Types
- Variables and Constants
- Computed Variables
- Variable Observers
- Tuples
- Tuple Variables and Constants
- Extracting Tuple Components
- Naming Tuple Components
- Using Type Aliases with Tuples
- Tuples as Return Types
- Operators
- No Implicit Type Conversion
- Arithmetic Operators
- Bitwise Operators
- Assignment Operators
- Comparison Operators
- Logical Operators
- Overflow Operators
- Type Casting Operators
- Range Operators
- Ternary Conditional Operator
- Operator Precedence
- Strings and Characters
- String Properties
- Comparing Strings
- Escaped Characters in Strings
- String Interpolation
- Arrays
- Accessing Array Elements
- Array Properties
- Modifying a Mutable Array
- Iterating Over Arrays
- Array Algorithms
- Dictionaries
- Accessing Dictionary Elements
- Dictionary Properties
- Modifying a Mutable Dictionary
- Iterating Over Dictionaries
- Functions
- Parameter Types
- Returning Optional Values
- Returning Multiple Values by using Tuples
- Local and External Parameter Names
- Default Parameter Values
- Variadic Parameters
- Function Types
- Closures
- Automatic Argument Names
- Trailing Closures
- Capturing Values
- Capturing Values by Reference
- Optionals
- Unwrapping Optionals
- Implicitly Unwrapped Optionals
- Optional Binding
- Optional Chaining
- Program Flow
- Loops
- Conditional Execution
- Classes
- Defining a Base Class
- Instances
- Properties
- Methods
- Subscripts
- Member Protection
- Inheritance: Deriving One Class from Another
- Overriding Superclass Entities
- Preventing Overrides and Subclassing
- Initialization
- Initialization and Inheritance
- Deinitialization
- Structures
- Properties in Structures
- Methods in Structures
- Mutating Methods
- Type Methods for Structures
- Initializers in Structures
- Enumerations
- Raw Member Values
- Associated Values
- Methods in Enumerations
- Type Methods for Enumerations
- Access Control
- Specifying Access Control Levels
- Default Access Control Levels
- Extensions
- Computed Property Extensions
- Initializer Extensions
- Method Extensions
- Subscript Extensions
- Checking and Casting Types
- Any and AnyObject
- Checking Types
- Downcasting Types
- Protocols
- Required Properties
- Required Methods
- Optional Methods and Properties
- Adopting Protocols with Extensions
- Inheritance and Protocols
- Using a Protocol as a Type
- Checking Protocol Conformance
- Built-In Protocols
- Memory Management
- How Reference Counting Works
- Retain Cycles and Strong References
- Weak References
- Unowned References
- Retain Cycles and Closures
- Generics
- Generic Functions
- Generic Types
- Constraining Types
- Generic Protocols
- Operator Overloading
- Overloading Unary Operators
- Custom Operators
- Custom Operator Precedence
- Ranges, Intervals, and Strides
- Ranges
- Intervals
- Strides
- Global Functions
- Index
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.