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

Person
Content
- Cover
- Title Page
- Copyright
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: Swift Building Blocks
- Introduction
- Your first Swift program
- Getting ready
- Downloading Xcode
- How to do it...
- There's more...
- See also
- Strings, Ints, Floats, and Bools
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Optionals, unwrap, and force unwrap
- Getting started
- How to do it...
- How it works...
- There's more...
- See also
- Functions
- How to do it...
- How it works...
- There's more...
- Default parameter values
- Parameter overloading
- See also
- Object classes
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Structs
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Enumerations
- Getting ready
- How to do it...
- How it works...
- There's more...
- Methods and computed variables
- Associated values
- See also
- Closures
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Protocols
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 2: Building on the Building Blocks
- Introduction
- Bundling variables into tuples
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Ordering your data with arrays
- How to do it...
- How it works...
- There's more...
- See also
- Containing your data with sets
- How to do it...
- How it works...
- Union
- Intersection
- Symmetric difference
- Subtracting
- There's more...
- See also
- Storing key-value pairs with Dictionaries
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Subscripts for custom types
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Changing your name with typealias
- How to do it...
- There's more...
- See also
- Getting property changing notifications using property observers
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Controlling access with access control
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Extending functionality with extensions
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 3: Data Wrangling with Swift Control Flow
- Introduction
- Making decisions with if/else
- Getting ready
- How to do it...
- How it works...
- There's more...
- Conditional unwrap
- Chain unwrapping Optionals
- Enum with associated values
- See also
- Switch it up
- Getting ready
- How to do it...
- How it works...
- See also
- For the love of loops
- How to do it...
- How it works...
- See also
- While loops
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Try, throw, do and, catch - Swift error handling
- How to do it...
- How it works...
- There's more...
- See also
- Checking up front with guard
- How to do it...
- How it works...
- See also
- Doing it later with defer
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Bailing out with fatalError and precondition
- Getting ready
- How to do it...
- How it works...
- See also
- Chapter 4: Generics, Operators, and Nested Types
- Introduction
- Using generics with types
- How to do it...
- How it works...
- There's more...
- See also
- Using generics with functions
- How to do it...
- How it works...
- There's more...
- See also
- Using generics with protocols
- Getting ready
- How to do it...
- There's more...
- See also
- Advanced operators
- Getting ready
- How to do it...
- See also
- Option set
- How to do it...
- How it works...
- See also
- Create custom operators
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Nested types
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 5: Beyond the Standard Library
- Introduction
- Foundation
- Getting ready
- How to do it...
- How it works...
- See also
- Networking
- How to do it...
- How it works...
- See also
- JSON
- Getting ready
- How to do it...
- There's more...
- See also
- XML
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Cocoa Touch
- Getting ready
- How to do it...
- There's more...
- See also
- Chapter 6: Swift Playgrounds
- Introduction
- Using Swift Playgrounds for UI
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Import Resources into Playgrounds
- Getting ready
- How to do it...
- How it works...
- See also
- Import Code into Playgrounds
- Getting ready
- How to do it...
- How it works...
- See also
- Multi-Page Playgrounds
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 7: Server-Side Swift
- Introduction
- Swift on Ubuntu
- Getting started
- How to do it...
- There's more...
- Building a REST API using Vapor
- Getting started
- How to do it...
- How it works...
- There's more...
- See also
- Persistence with Vapor using Postgres
- Getting started
- How to do it...
- There's more...
- See also
- Hosting your Vapor app on Heroku
- Getting started
- How to do it...
- See also
- Chapter 8: Performance and Responsiveness in Swift
- Introduction
- Value and reference semantics
- Getting ready
- How to do it...
- How it works...
- See also
- Dispatch Queues
- Getting ready
- How to do it...
- How it works...
- See also
- Concurrent queues and dispatch groups
- Getting ready
- How to do it...
- How it works...
- See also
- Operations
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Index
System requirements
File format: ePUB
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 (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
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.
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.