万本电子书0元读

万本电子书0元读

顶部广告

Swift 4 Programming Cookbook电子书

售       价:¥

38人正在读 | 0人评论 6.2

作       者:Keith Moon

出  版  社:Packt Publishing

出版时间:2017-09-28

字       数:42.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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 run Swift on Linux and then investigate Vapor, one of the most popular server-side frameworks for Swift. Style and approach Each recipe addresses a specific problem, with a detailed discussion that explains the solution and offers insight into how it works.
目录展开

Title Page

Copyright

Swift 4 Programming Cookbook

Credits

About the Author

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

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

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

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

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

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

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

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

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部