Books: 46

Swift

CoverTitleYear
Swift Programming Using Agile Tools and Techniques
This short step by step guide walks you through unit testing, mocking and continuous integration and how to get these key ingredients running in your Swift projects. This book also looks at how to write your Swift apps using test driven development (TDD). Agile practices have made major inroads in more » iOS development, however it’s very unusual to see something as basic as unit testing on a Swift application. Done correctly, Agile development results in a significant increase in development efficiency and a reduction in the number of defects. Apple has released unit testing and code coverage frameworks for Swift development in XCode. Up until now getting unit testing up and running in Swift was not for the faint-hearted. Thankfully now, there is no excuse other than a lack of information on where to get started. iOS developers are faced with their own set of problems such as tightly coupled code, fragmentation, immature testing tools all of which can be solved using existing Agile tools and techniques. After using this book, you'll learn how to make your Swift apps agile and sound. What You Will Learn: * How to write unit tests in Swift * How to write an application using Test Driven Development * Refactoring * Mocking frameworks * How to set up and configure a Continuous Integration Server * How to measure code coverage * GUI Testing Who This Book Is For: Swift developers and would be mobile app testers will benefit from the guidance in this book. « less
2017
Learn to build fast and robust applications on the Linux platform with Swift
About This Book Create robust applications by building a strong foundation in the Swift Language Utilize Swift 3 on the embedded Linux platform for IoT and Robotic projects Build more flexible and high-performing applications on desktop, server, and embedded Linux platforms Who This Book Is For This more » book is for Linux developers who are interested in quickly learning how to use Swift to create exciting applications on Linux platforms. What You Will Learn * Install Swift on the Linux platform * Explore the power of the Swift language * Get to know the proper design techniques * Understand Swift’s new Core Library * Implement popular design patterns with Swift * Integrate C libraries with Swift Using Swift on Single-Board Computers * Learn how to add concurrency to your application with Grand Central Dispatch * Learn how to work with Swift Generics * Learn how to use the Protocol-Oriented design paradigm In Detail Swift is a modern, fast, and safe programming language created by Apple. Writing Swift is interactive and fun, the syntax is concise yet expressive, and the code runs lightning-fast. Swift’s move to open source has been embraced with open arms and has seen increased adoption in the Linux platform. Our book will introduce you to the Swift language, further delving into all the key concepts you need to create applications for desktop, server, and embedded Linux platforms. We will teach you the best practices to design an application with Swift 3 via design patterns and Protocol-Oriented Programming. Further on, you will learn how to catch and respond to errors within your application. When you have gained a strong knowledge of using Swift in Linux, we’ll show you how to build IoT and robotic projects using Swift on single board computers. By the end of the book, you will have a solid understanding of the Swift Language with Linux and will be able to « less
2017
Swift 3 Edition
Pro Xcode is a complete Xcode reference for developers. While Apress' Beginning Xcode touched on some fairly advanced topics in a relaxed and friendly manner, Apress' Pro Xcode is a more expansive and concise book, going into more detail about each area with a tone more appropriate to the audience. In more » this book, you'll learn and use unit testing, instruments, core data, persistence and more. This book also includes in-app purchasing using Xcode, which few other books cover. While using this book, you'll get some cool projects to build. For example, you'll learn how to create a 'Charades' or 'Draw Something' style app where you'll get exposure to iOS game center integration. This 'Charades' game app lets users draw a picture describing a phrase and the other player has to guess what it is. Other projects include the following: Build a class for a person and set up unit tests to check the constructor works currently.Create an app that plays music from a device's music collection.Build an electronic business card and make it available in multiple languages.Create a Sprite Kit app with some fun physics effects such as walls that explode when contacted by another object.Develop an app with a dollar value displayed representing in-game credits that is altered through in-app purchases. After reading and using this book, you'll be a proficient and productive iOS app developer using the Xcode IDE and framework. « less
2016
2016
Data Storage and Management for iOS and OS X
Core Data is intricate, powerful, and necessary. Discover the powerful capabilities integrated into Core Data, and how to use Core Data in your iOS and OS X projects. All examples are current for OS X El Capitan, iOS 9, and the latest release of Core Data. All the code is written in Swift, including more » numerous examples of how best to integrate Core Data with Apple's newest programming language. Core Data expert Marcus Zarra walks you through a fully developed application based around the Core Data APIs. You'll build on this application throughout the book, learning key Core Data elements such as NSPredicate, NSFetchRequest, thread management, and memory management. Start with the basics of Core Data and learn how to use it to develop your application. Then delve deep into the API details. Explore how to get Core Data integrated into your application properly, and work with this flexible API to create convenience methods to improve your application's maintainability. Reduce your migration difficulties, integrate your Core Data app with iCloud and Watch Kit, and use Core Data in a queue-based environment. By the end of the book, you'll have built a full-featured application, gained a complete understanding of Core Data, and learned how to integrate your application into the iPhone/iPad platform. This book is based on Core Data in Objective-C, Third Edition. It focuses on Swift and adds an additional chapter on how to integrate Core Data with an efficient network implementation, with best practices on how to load and pre-load data into your Swift application. What You Need: Mac OS X El Capitan and iOS 9 and a basic working knowledge of Swift « less
2016
Swift, Xcode, and Cocoa Basics. Covers iOS 10, Xcode 8, and Swift 3.
Move into iOS development by getting a firm grasp of its fundamentals, including the Xcode IDE, the Cocoa Touch framework, and Swift 3—the latest version of Apple’s acclaimed programming language. With this thoroughly updated guide, you’ll learn Swift’s object-oriented concepts, understand how to use more » Apple’s development tools, and discover how Cocoa provides the underlying functionality iOS apps need to have. * Explore Swift’s object-oriented concepts: variables and functions, scopes and namespaces, object types and instances * Become familiar with built-in Swift types such as numbers, strings, ranges, tuples, Optionals, arrays, dictionaries, and sets * Learn how to declare, instantiate, and customize Swift object types: enums, structs, and classes * Discover powerful Swift features such as protocols and generics * Catch up on Swift 3 innovations: revised APIs, new Foundation bridged types, and more * Tour the lifecycle of an Xcode project from inception to App Store—including Xcode’s new automatic code signing and debugging features * Construct app interfaces with the nib editor, Interface Builder * Understand Cocoa’s event-driven model and its major design patterns and features * Find out how Swift communicates with Cocoa’s C and Objective-C APIs Once you master the fundamentals, you’ll be ready to tackle the details of iOS app development with author Matt Neuburg’s companion guide, Programming iOS 10. « less
2016
Solutions and Examples for iOS Apps
Ready to build stunning apps for iPhone, iPad, and Apple Watch? This cookbook—completely rewritten with all-new material—provides 90 proven solutions for tackling the latest features in iOS 9 and watchOS 2.0. Written exclusively in Apple’s Swift language, these code-rich recipes show you how to use dynamic more » user interfaces, interactive maps, multitasking functionality, Apple’s new UI Testing framework, and many other features. This cookbook is ideal for intermediate and advanced iOS developers looking to work with the newest versions of Apple’s mobile operating systems. Each recipe includes reusable code, available on GitHub, that you can put to work right away. * Work with new features in Swift 2, Xcode 7, and Interface Builder * Build standalone apps for Apple Watch * Create vibrant user interfaces with new UIKit features * Use Swift to connect with the iOS contacts database * Block ads or obtrusive content with Safari Content Blockers * Make your app content searchable with Spotlight APIs * Add Picture in Picture playback functionality to iPad apps * Take advantage of MapKit and Core Location updates * Use Apple’s new UI Testing framework * Liven up your UI with gravity and turbulence fields « less
2016
Building Apps for OS X and iOS
Get hands-on experience with Apple’s Swift programming language by building real working apps. With this practical guide, skilled programmers with little or no knowledge of Apple development will learn how to code with Swift 2 by developing three complete, tightly linked versions of the Notes application more » for the OS X, iOS, and watchOS platforms. In the process, you’ll learn Swift’s fundamentals, including its syntax and features, along with the basics of the Cocoa, CocoaTouch, and WatchKit frameworks. This book teaches you how to use common design patterns for Swift, how to structure an application for Apple’s platforms, and how to submit working apps to the App Store. Divided into four distinct parts, this book includes: * Swift 2 basics: Learn Swift’s features for object-oriented development, as well as various developer tools * OS X app development: Set up your app, work with its documents, and build out its features * iOS app development: Use multimedia, contacts, location, notifications, and iCloud files to build a fully featured iOS Notes app * Advanced app extensions: Support Apple Watch and learn how to debug, monitor, and test all three of your Swift apps « less
2016
Get started fast with Swift™ 2 programming for iOS and OS X Learning Swift 2 Programming is a fast-paced, hands-on introduction to writing production-quality iOS and OS X apps with Apple’s programming language. Written for developers with experience in any modern language, this book explains Swift more » simply and clearly, using relevant examples that solve realistic problems. Author Jacob Schatz’s popular YouTube video tutorials have already helped thousands of Apple developers get started with Swift. Now, he helps you take full advantage of Swift’s advanced design, remarkable performance, and streamlined development techniques. Step by step, you’ll move from basic syntax through advanced features such as closures and generics–discovering helpful tips and tricks along the way. After you’ve mastered Swift’s building blocks and learned about its key innovations, a full section of case studies walks you through building complete apps from scratch. Learn how to: * Compare Swift with Objective-C, JavaScript, Python, Ruby, and C * Collect data with arrays and dictionaries, and store it with variables and constants * Group commonly used code into functions for easy reuse * Structure your code with enums, structs, and classes * Use generics to get more done with less code * Write closures to share small blocks of functionality * Use optionals to write more robust, crash-resistant, and cleaner code * Integrate existing Objective-C code into new Swift apps * Program on the bit and byte levels with advanced operators * Implement efficient design patterns with protocols and delegates * Create animated 2D games with SpriteKit, and apps with UIKit Register your product at informit.com/register for convenient access to downloads, updates, and corrections as they become available. JACOB SCHATZ is a senior software engineer with more than eight years of experience writing code for the masses. His popular Skip Wilson YouTube channel has helped thousands of people around the world learn programming languages like Swift and Python. Although lately he has been deep into Swift, he also writes volumes of code in JavaScript, Python, Objective-C, and other languages. informit.com/learningseries informit.com/aw « less
2016
Building Apps for OS X and iOS
Get hands-on experience with Apple’s Swift programming language by building real working apps. With this practical guide, skilled programmers with little or no knowledge of Apple development will learn how to code with Swift 2 by developing three complete, tightly linked versions of the Notes application more » for the OS X, iOS, and watchOS platforms. In the process, you’ll learn Swift’s fundamentals, including its syntax and features, along with the basics of the Cocoa, CocoaTouch, and WatchKit frameworks. This book teaches you how to use common design patterns for Swift, how to structure an application for Apple’s platforms, and how to submit working apps to the App Store. Divided into four distinct parts, this book includes: * Swift 2 basics: Learn Swift’s features for object-oriented development, as well as various developer tools * OS X app development: Set up your app, work with its documents, and build out its features * iOS app development: Use multimedia, contacts, location, notifications, and iCloud files to build a fully featured iOS Notes app * Advanced app extensions: Support Apple Watch and learn how to debug, monitor, and test all three of your Swift apps « less
2016