|
|
Books > Computing & IT > Computer hardware & operating systems > Operating systems & graphical user interfaces (GUIs) > Macintosh OS
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 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 create your own applications with
ease. Style and approach This easy-to-follow, code-rich guide is
filled with examples that demonstrate how to put the concepts into
practice. You'll also get design patterns and best practices to get
you writing better applications on the Linux platform.
Dive into the latest release of the Swift programming language with
this advanced Apple development book About This Book * Discover the
new features and improvements to Swift 3 * Get to grips with
advanced design patterns and techniques to write smarter, cleaner
Swift code * Become a more fluent Swift developer and build
powerful, impressive iOS and OS X applications. Who This Book Is
For This book is for developers who want to dive into the newest
version of Swift. If you are a developer that learns best by
looking at, and working with code, then this book is for you. A
basic understanding of Apple's tools is beneficial but not
mandatory. What You Will Learn * Dive into the core components of
Swift 3.0, including operators, collections, control flow, and
functions * Create and use classes, structures, and enums *
Understand object-oriented Swift and see how to tackle inheritance,
protocols, and extensions * Develop a practical understanding of
subscripts, optionals, and closures * See how to use the new
protocol extension and error handling features of Swift 3.0 * Add
concurrency to your applications using Grand Central Dispatch In
Detail Swift is the definitive language of Apple development today.
It's a vital part of any iOS and OS X developer's skillset, helping
them to build the most impressive and popular apps on the App
Store-the sort of apps that are essential to iPhone and iPad users
every day. With version 3.0, the Swift team have added new features
to improve the development experience-making it easier to get the
results you want and customers expect. Inside, you'll find the key
features of Swift 3.0 and quickly learn how to use the newest
updates to your development advantage. From Objective-C
interoperability to ARC, to closures and concurrency, this advanced
Swift guide will develop your expertise and make you more fluent in
this vital programming language. We give you in-depth knowledge of
some of the most sophisticated elements of Swift development
including protocol extensions, error-handling, design patterns, and
concurrency, and guide you on how to use and apply them in your own
projects. You'll see how even the most challenging design patterns
and programming techniques can be used to write cleaner code and to
build more performant iOS and OS X applications. By the end of this
book, you'll have a handle on effective design patterns and
techniques, which means you'll soon be writing better iOS and OS X
applications with a new level of sophistication and control. Style
and approach Packed with practical examples that show you how to
put the concepts you learn into practice quickly, we'll takes you
through some of the most advanced and sophisticated elements of the
language in a practical and actionable way. You can also download
the code to use yourself
Embrace the mobile gaming revolution by creating popular iOS games
with Swift 4.2 Key Features Learn to create games for iPhone and
iPad with the latest Swift Programming language Understand the
fundamental concepts of game development like game physics, camera
action, sprites, controls, among others Build Augmented reality
games using ARKit for true performance Book DescriptionSwift is the
perfect choice for game development. Developers are intrigued by
Swift and want to make use of new features to develop their best
games yet. Packed with best practices and easy-to-use examples,
this book leads you step by step through the development of your
first Swift game. The book starts by introducing Swift's best
features - including its new ones for game development. Using
SpriteKit, you will learn how to animate sprites and textures.
Along the way, you will master physics, animations, and collision
effects and how to build the UI aspects of a game. You will then
work on creating a 3D game using the SceneKit framework. Further,
we will look at how to add monetization and integrate Game Center.
With iOS 12, we see the introduction of ARKit 2.0. This new version
allows us to integrate shared experiences such as multiplayer
augmented reality and persistent AR that is tied to a specific
location so that the same information can be replicated on all
connected devices. In the next section, we will dive into creating
Augmented Reality games using SpriteKit and SceneKit. Then,
finally, we will see how to create a Multipeer AR project to
connect two devices, and send and receive data back and forth
between those devices in real time. By the end of this book, you
will be able to create your own iOS games using Swift and publish
them on the iOS App Store. What you will learn Deliver powerful
graphics, physics, and sound in your game by using SpriteKit and
SceneKit Set up a scene using the new capabilities of the scene
editor and custom classes Maximize gameplay with little-known tips
and strategies for fun, repeatable action Make use of animations,
graphics, and particles to polish your game Understand the current
mobile monetization landscape Integrate your game with Game Center
Develop 2D and 3D Augmented Reality games using Apple's new ARKit
framework Publish your game to the App Store Who this book is forIf
you wish to create and publish iOS games using Swift, then this
book is for you. No prior game development or experience with Apple
ecosystem is needed.
Leverage the power of machine learning and Swift programming to
build intelligent iOS applications with ease Key Features Implement
effective machine learning solutions for your iOS applications Use
Swift and Core ML to build and deploy popular machine learning
models Develop neural networks for natural language processing and
computer vision Book DescriptionMachine learning as a field
promises to bring increased intelligence to the software by helping
us learn and analyse information efficiently and discover certain
patterns that humans cannot. This book will be your guide as you
embark on an exciting journey in machine learning using the popular
Swift language. We'll start with machine learning basics in the
first part of the book to develop a lasting intuition about
fundamental machine learning concepts. We explore various
supervised and unsupervised statistical learning techniques and how
to implement them in Swift, while the third section walks you
through deep learning techniques with the help of typical
real-world cases. In the last section, we will dive into some hard
core topics such as model compression, GPU acceleration and provide
some recommendations to avoid common mistakes during machine
learning application development. By the end of the book, you'll be
able to develop intelligent applications written in Swift that can
learn for themselves. What you will learn Learn rapid model
prototyping with Python and Swift Deploy pre-trained models to iOS
using Core ML Find hidden patterns in the data using unsupervised
learning Get a deeper understanding of the clustering techniques
Learn modern compact architectures of neural networks for iOS
devices Train neural networks for image processing and natural
language processing Who this book is foriOS developers who wish to
create smarter iOS applications using the power of machine learning
will find this book to be useful. This book will also benefit data
science professionals who are interested in performing machine
learning on mobile devices. Familiarity with Swift programming is
all you need to get started with this book.
Create fully-featured and highly functional iOS apps by writing
tests first About This Book * Learn test-driven principles to help
you build apps with fewer bugs and better designs * Become more
efficient while working with Swift to move on to your next project
faster! * Learn how to incorporate all of the principles of
test-driven development (TDD) in to your daily programming workflow
Who This Book Is For If debugging iOS apps is a nerve-racking task
for you and you are looking for a fix, this book is for you. What
You Will Learn * Implement TDD in swift application development *
Get to know the fundamentals, life cycle, and benefits of TDD *
Explore the tools and frameworks to effectively use TDD * Develop
models and controllers driven by tests * Construct the network
layer using stubs * Use functional tests to ensure the app works as
planned * Automate and streamline the building, analysing, testing,
and archiving of your iOS apps In Detail Test-driven development
(TDD) is a proven way to find software bugs early. Writing tests
before your code improves the structure and maintainability of your
app. Test-Driven iOS Development with Swift will help you
understand the process of TDD and how it impacts your applications
written in Swift. Through practical, real-world examples, you'll
start seeing how to implement TDD in context. We will begin with an
overview of your TDD workflow and then deep-dive into unit testing
concepts and code cycles. We will showcase the workings of
functional tests, which will help you improve the user interface.
Finally, you will learn about automating deployments and continuous
integration to run an environment. Style and approach This is an
easy-to-follow example-driven tutorial, packed with lots of tips
and tricks that explore TDD bit-by-bit in the process of making an
iOS application.
This book is aimed at experienced Swift developers who want to
optimize their programs on Apple platforms.
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.
Build robust and scalable iOS and Mac OS X game applications About
This Book * Learn to use and implement the 23 Gang of Four design
patterns using Swift 2 * Design and architect your code for Swift
application development * Understand the role, generic UML design,
and participants in the class diagram of the pattern by
implementing them in a step-by-step approach Who This Book Is For
This book is intended for competent Swift developers who want to
apply enduring design patterns with Swift to structure and scale
their application code. What You Will Learn * Choose the
appropriate pattern depending on the problem to be solved *
Understand the generic class diagram of each of the 23 GoF patterns
and how each object participates in the pattern * Use Swift to
implement these patterns even though the language doesn't provide
all of the object-oriented programming concepts such as abstract
class, interface, and so on * Architect your software to avoid the
overuse of memory, time spent on calculations, or high network
traffic * Find the best way to organize your code to make it more
secure from the outside world * Prepare your code to make it more
flexible when the consumer changes or the third-party component
hidden code changes * Structure your code to change the algorithm
to apply at runtime * Deliver Flyweight responsibility to your
objects In Detail Swift is a multi-paradigm language. It has
expressive features familiar to those used to work with modern
functional languages, while also keeping the object-oriented
features of Objective-C. It remains compatible with Apple's legacy
codes and frameworks. A design pattern systematically names,
motivates, and explains a general design that addresses a recurring
design problem in object-oriented systems. It describes the
problem, the solution, when to apply the solution, and its
consequences. It also gives implementation hints and examples.
Knowledge about design patterns is also one of the best ways to
make you different compared to other low-level developers. This
book shows you how to use Swift 2 to learn about 23 Gang of Four
(GoF) design patterns, and is organized into three categories. The
book will present you the five creational patterns, followed by the
seven structural patterns, and finishing with the 11 behavioral
patterns as defined by the GoF. Each chapter will introduce the
pattern by defining its role, which common problems the pattern
should be used for, its generic UML representation, how each
objects presented in the class diagram participate in the pattern,
and what the role of each of these objects is. The book then
presents you with a concrete case as an illustration that will be
used to implement the pattern using Swift. Style and approach A
step-by-step tutorial completed with screenshots and code
highlights wherever necessary. Each chapter discusses one or more
patterns with its definitions and a simple-to-follow illustration
case using a playground or XCText project to implement it with
Swift.
Take your macOS Sierra to the next level using the latest tools,
designs, and best coding practices while developing with Swift 3.0
About This Book * Learn to harness the power of macOS with the
elegance of the Swift programming language * Become highly
competent in building apps on the macOS platform * Get the most
in-depth guide with a hands-on approach on the latest version of
macOS Who This Book Is For This book is for developers who have
some experience with macOS and want to take their skills to next
level by unlocking the full potential of latest version of macOS
with Swift 3 to build impressive applications. Basic knowledge of
Swift will be beneficial but is not required. What You Will Learn *
Combine beautiful design with robust code for the very best user
experience * Bring the best coding practices to the new macOS
Sierra * See what's new in Swift 3.0 and how best to leverage the
Swift language * Master Apple's tools, including Xcode, Interface
Builder, and Instruments * Use Unix and other common command-line
tools to increase productivity * Explore the essential Cocoa
frameworks, including networking, animation, audio, and video In
Detail macOS continues to lead the way in desktop operating
systems, with its tight integration across the Apple ecosystem of
platforms and devices. With this book, you will get an in-depth
knowledge of working on macOS, enabling you to unleash the full
potential of the latest version using Swift 3 to build
applications. This book will help you broaden your horizons by
taking your programming skills to next level. The initial chapters
will show you all about the environment that surrounds a developer
at the start of a project. It introduces you to the new features
that Swift 3 and Xcode 8 offers and also covers the common design
patterns that you need to know for planning anything more than
trivial projects. You will then learn the advanced Swift
programming concepts, including memory management, generics,
protocol orientated and functional programming and with this
knowledge you will be able to tackle the next several chapters that
deal with Apple's own Cocoa frameworks. It also covers AppKit,
Foundation, and Core Data in detail which is a part of the Cocoa
umbrella framework. The rest of the book will cover the challenges
posed by asynchronous programming, error handling, debugging, and
many other areas that are an indispensable part of producing
software in a professional environment. By the end of this book,
you will be well acquainted with Swift, Cocoa, and AppKit, as well
as a plethora of other essential tools, and you will be ready to
tackle much more complex and advanced software projects. Style and
approach This comprehensive guide takes a hands-on practical
approach incorporating a visually-rich format rather than a text
heavy format. The focus is on teaching the core concepts through a
series of small projects and standalone examples so you gain
expertise with various aspects of macOS application development.
|
|