2 options
Swift 4 programming cookbook : 50 task-oriented recipes to make you productive with Swift 4 / Keith Moon.
- Format:
- Book
- Author/Creator:
- Moon, Keith, author.
- Language:
- English
- Subjects (All):
- iOS (Electronic resource).
- Application software--Development.
- Application software.
- Physical Description:
- 1 online resource (1 volume) : illustrations
- Edition:
- 1st edition
- Other Title:
- Swift four programming cookbook
- Place of Publication:
- Birmingham, England ; Mumbai, [India] : Packt, 2017.
- System Details:
- text file
- Summary:
- Over 50 recipes to help you quickly and efficiently build applications with Swift 4 and Xcode 9 About This Book Write robust and efficient code and avoid common pitfalls using Swift 4 Get a comprehensive coverage of the tools and techniques needed to create multi-platform apps with Swift 4 Packed with easy-to-follow recipes, this book will help you develop code using the latest version of Swift Who This Book Is For If you are looking for a book to help you learn about the diverse features offered by Swift 4 along with tips and tricks to efficiently code and build applications, then this book is for you. Basic knowledge of Swift or general programming concepts will be beneficial. What You Will Learn Explore basic to advanced concepts in Swift 4 Programming Unleash advanced features of Apple's Xcode 9 IDE and Swift Playgrounds Learn about the conditional statements, loops, and how to handle errors in Swift Define flexible classes and structs using Generics, and learn about the advanced operators, and create custom operators Explore functionalities outside of the standard libraries of Swift Import your own custom functionality into Swift Playgrounds Run Swift on Linux and investigate server-side programming with the server side framework Vapor In Detail Swift 4 is an exciting, multi-platform, general-purpose programming language. Being open source, modern and easy to use has made Swift one of the fastest growing programming languages. If you interested in exploring it, then this book is what you need. The book begins with an introduction to the basic building blocks of Swift 4, its syntax and the functionalities of Swift constructs. Then, introduces you to Apple's Xcode 9 IDE and Swift Playgrounds, which provide an ideal platform to write, execute, and debug the codes thus initiating your development process. Next, you'll learn to bundle variables into tuples, set order to your data with an array, store key-value pairs with dictionaries and you'll learn how to use the property observers. Later, explore the decision-making and control structures in Swift and learn how to handle errors in Swift 4. Then you'll, examine the advanced features of Swift, generics and operators, and then explore the functionalities outside of the standard library, provided by frameworks such as Foundation and UIKit. Also, you'll explore advanced features of Swift Playgrounds. At the end of the book, you'll learn server-side programming aspect of Swift 4 and see how to ru...
- Contents:
- 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
- How it works...
- Optionals, unwrap, and force unwrap
- Getting started
- Functions
- Default parameter values
- Parameter overloading
- Object classes
- Structs
- Enumerations
- Methods and computed variables
- Associated values
- Closures
- Protocols
- Chapter 2: Building on the Building Blocks
- Bundling variables into tuples
- Ordering your data with arrays
- Containing your data with sets
- Union
- Intersection
- Symmetric difference
- Subtracting
- Storing key-value pairs with Dictionaries
- See also.
- Subscripts for custom types
- Changing your name with typealias
- Getting property changing notifications using property observers
- Controlling access with access control
- Extending functionality with extensions
- Chapter 3: Data Wrangling with Swift Control Flow
- Making decisions with if/else
- Conditional unwrap
- Chain unwrapping Optionals
- Enum with associated values
- Switch it up
- For the love of loops
- While loops
- Try, throw, do and, catch - Swift error handling
- Checking up front with guard
- Doing it later with defer
- Bailing out with fatalError and precondition
- Chapter 4: Generics, Operators, and Nested Types
- Using generics with types
- Using generics with functions
- Using generics with protocols.
- Getting ready
- Advanced operators
- Option set
- Create custom operators
- Nested types
- Chapter 5: Beyond the Standard Library
- Foundation
- Networking
- JSON
- XML
- Cocoa Touch
- Chapter 6: Swift Playgrounds
- Using Swift Playgrounds for UI
- Import Resources into Playgrounds
- Import Code into Playgrounds
- Multi-Page Playgrounds
- Chapter 7: Server-Side Swift
- Swift on Ubuntu
- Building a REST API using Vapor
- Persistence with Vapor using Postgres
- Hosting your Vapor app on Heroku
- Chapter 8: Performance and Responsiveness in Swift
- Introduction.
- Value and reference semantics
- Dispatch Queues
- Concurrent queues and dispatch groups
- Operations
- Index.
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed October 25, 2017).
- OCLC:
- 1008968550
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.