Swift 3 New Features
Keith Elliott
- 出版商: Packt Publishing
- 出版日期: 2016-10-07
- 售價: $1,440
- 貴賓價: 9.5 折 $1,368
- 語言: 英文
- 頁數: 142
- 裝訂: Paperback
- ISBN: 1786469634
- ISBN-13: 9781786469632
-
相關分類:
Apple Developer
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- Get up to date with the latest changes to Swift 3
- Make your life easier by knowing how to port your Swift code to the latest version
- Learn how to write programs that work on most of the major platforms such as iOS and Linux
Book Description
Since Swift was introduced by Apple in WWDC 2015, it has gone on to become one of the most beloved languages to develop iOS applications with. In the new version, the Swift team aimed to take its adoption to the next level by making it available for new platforms and audiences.
This book will very quickly get you up to speed and productive with Swift 3. You will begin by understanding the process of submitting new feature requests for future versions of Swift. Swift 3 allows you to develop and run your applications on a Linux machine. Using this feature, you will write your first Linux application using the debugger in Linux. Using Swift migrator, you will initiate a conversion from Swift 2.2 to Swift 3.
Further on, you will learn how to interact with Cocoa libraries when importing Objective C to Swift. You will explore the function and operator changes new to Swift 3, followed by Collection and Closure changes. You will also see the changes in Swift 3 that allow you write tests easier with XCTest and debug your running code better with new formats as well. Finally, you will have a running server written completely in Swift on a Linux box.
By the end of the book, you will know everything you need to know to dive into Swift 3 and build successful projects.
What you will learn
- Migrate a Swift 2.2 project to Swift 3
- Understand the workings of Swift Package Manager
- Interact with Cocoa libraries when importing Objective C to Swift
- Explore the function and operator changes new in Swift 3
- Work with the advanced type changes, attribute improvements, and floating point type improvements in Swift
- Discover the changes in the Swift API and see how Objective-C can be manipulated in the current API
- Implement the new features central to Swift Testing and understand the new debug features
- Create server-side applications using Swift 3
About the Author
Keith Elliott is a multitalented professional with unique business and technology experience spanning telecommunications, real estate investment banking, and capital markets. His work is driven simply by problems that need solutions, whether the problem is as simple as his wife’s request for a custom to-do list or as complex as interest rate derivatives and foreign exchange hedging. He graduated with an MBA from Columbia Business School with an emphasis in entrepreneurship and an undergraduate degree from Georgia Institute of Technology with a bachelor's in computer engineering.
Keith's own company, GittieLabs LLC, works with startups to provide technology solutions. His vision is to equip students with the real-life experience necessary to succeed in startup and corporate life. You can find his blog on the GittieLabs LLC website, www.gittie.com.
On nights and weekends, Keith can be found spending time with his family, riding motorcycles with his lovely wife, watching football, and rewatching countless hours of WWDC videos.
Table of Contents
- What Were They Thinking?
- Discovering New Territories – Linux at Last!
- Migrating to Swift 3 to Be More Swifty
- Changes to Swifts Core Will Have You Asking for More
- Function and Operator Changes – New Ways to Get Things Done
- Extra, Extra Collection and Closure Changes That Rock!
- Hold onto Your Chair; Advanced Type Changes Are Here!
- Oh Goodness! Look What is New in the Foundation Framework
- Improving Your Code with Xcode Server and LLDB Debugging
- Exploring Swift on the Server
商品描述(中文翻譯)
關鍵特點
- 瞭解 Swift 3 的最新變更
- 知道如何將您的 Swift 代碼移植到最新版本,讓您的生活更輕鬆
- 學習如何編寫能在 iOS 和 Linux 等主要平台上運行的程序
書籍描述
自從 Apple 在 WWDC 2015 介紹 Swift 以來,它已成為開發 iOS 應用程序最受喜愛的語言之一。在新版本中,Swift 團隊旨在通過將其提供給新平台和受眾來提升其採用程度。
本書將迅速讓您熟悉並高效使用 Swift 3。您將首先了解提交新功能請求以供未來版本的過程。Swift 3 允許您在 Linux 機器上開發和運行應用程序。利用此功能,您將使用 Linux 中的調試器編寫您的第一個 Linux 應用程序。使用 Swift migrator,您將啟動從 Swift 2.2 到 Swift 3 的轉換。
接下來,您將學習在將 Objective C 引入 Swift 時如何與 Cocoa 庫互動。您將探索 Swift 3 中的新函數和運算符變更,接著是集合和閉包的變更。您還將看到 Swift 3 中的變更,這些變更使您能夠更輕鬆地使用 XCTest 編寫測試,並以新格式更好地調試運行中的代碼。最後,您將在 Linux 環境中擁有一個完全用 Swift 編寫的運行伺服器。
到書籍結束時,您將了解進入 Swift 3 和構建成功項目所需的一切知識。
您將學到的內容
- 將 Swift 2.2 項目遷移到 Swift 3
- 理解 Swift Package Manager 的運作
- 在將 Objective C 引入 Swift 時與 Cocoa 庫互動
- 探索 Swift 3 中的新函數和運算符變更
- 使用 Swift 中的高級類型變更、屬性改進和浮點類型改進
- 發現 Swift API 中的變更,並了解如何在當前 API 中操作 Objective-C
- 實現 Swift 測試的核心新功能,並理解新的調試功能
- 使用 Swift 3 創建伺服器端應用程序
關於作者
Keith Elliott 是一位多才多藝的專業人士,擁有獨特的商業和技術經驗,涵蓋電信、房地產投資銀行和資本市場。他的工作驅動力來自需要解決的問題,無論問題是他妻子要求的自定義待辦事項清單,還是利率衍生品和外匯對沖等複雜問題。他畢業於哥倫比亞商學院,獲得 MBA,專注於創業,並在喬治亞理工學院獲得計算機工程學士學位。
Keith 自己的公司 GittieLabs LLC 與初創企業合作,提供技術解決方案。他的願景是為學生提供在初創企業和企業生活中成功所需的實際經驗。您可以在 GittieLabs LLC 網站 www.gittie.com 上找到他的博客。
在夜晚和周末,Keith 通常會和家人共度時光,與他可愛的妻子騎摩托車,觀看足球比賽,以及重溫無數小時的 WWDC 影片。
目錄
1. 他們在想什麼?
2. 發現新領域 – 終於有 Linux!
3. 遷移到 Swift 3 以變得更 Swifty
4. Swift 核心的變更將讓您渴望更多
5. 函數和運算符變更 – 新的工作方式
6. 額外的集合和閉包變更,真是太棒了!
7. 抓緊椅子;高級類型變更來了!
8. 哦,天哪!基礎框架中有什麼新東西
9. 使用 Xcode Server 和 LLDB 調試改善您的代碼
10. 探索伺服器上的 Swift