|
|
Books > Computing & IT > Computer hardware & operating systems > Operating systems & graphical user interfaces (GUIs) > Macintosh OS
Unleash the power of declarative programming in SwiftUI with
practical recipes for building cross-platform Apple applications
for iOS 14, macOS, and watchOS using Swift 5.3, Xcode 12, and
SwiftUI 2.0 Key Features Apply the declarative programming paradigm
for building cross-platform UIs for Apple devices Learn to
integrate UIKit, Core Data, Sign in with Apple, and Firebase with
SwiftUI Adopt the new SwiftUI 2.0 features to build visually
appealing UIs at speed Book DescriptionSwiftUI is an innovative and
simple way to build beautiful user interfaces (UIs) for all Apple
platforms, right from iOS and macOS through to watchOS and tvOS,
using the Swift programming language. In this recipe-based book,
you'll work with SwiftUI and explore a range of essential
techniques and concepts that will help you through the development
process. The recipes cover the foundations of SwiftUI as well as
the new SwiftUI 2.0 features introduced in iOS 14. Other recipes
will help you to make some of the new SwiftUI 2.0 components
backward-compatible with iOS 13, such as the Map View or the Sign
in with Apple View. The cookbook begins by explaining how to use
basic SwiftUI components. Then, you'll learn the core concepts of
UI development such as Views, Controls, Lists, and ScrollViews
using practical implementation in Swift. By learning drawings,
built-in shapes, and adding animations and transitions, you'll
discover how to add useful features to the SwiftUI. When you're
ready, you'll understand how to integrate SwiftUI with exciting new
components in the Apple development ecosystem, such as Combine for
managing events and Core Data for managing app data. Finally,
you'll write iOS, macOS, and watchOS apps while sharing the same
SwiftUI codebase. By the end of this SwiftUI book, you'll have
discovered a range of simple, direct solutions to common problems
found in building SwiftUI apps. What you will learn Explore various
layout presentations in SwiftUI such as HStack, VStack, LazyHStack,
and LazyVGrid Create a cross-platform app for iOS, macOS, and
watchOS Get up to speed with drawings in SwiftUI using built-in
shapes, custom paths, and polygons Discover modern animation and
transition techniques in SwiftUI Add user authentication using
Firebase and Sign in with Apple Handle data requests in your app
using Core Data Solve the most common SwiftUI problems, such as
integrating a MapKit map, unit testing, snapshot testing, and
previewing layouts Who this book is forThis book is for mobile
developers who want to learn SwiftUI as well as experienced iOS
developers transitioning from UIKit to SwiftUI. The book assumes
knowledge of the Swift programming language. Knowledge of
object-oriented design and data structures is useful but not
necessary.
Learn SwiftUI by designing and building complex user interfaces for
watchOS, iPadOS, and iOS with the help of projects including a
financial app, a sports news app, and a POS system Key Features
Learn SwiftUI with the help of practical cross-platform development
projects Understand the design considerations for building apps for
different devices such as Apple Watch, iPhone, and iPad using
SwiftUI's latest features Work with advanced SwiftUI layout
features, including SF Symbols, SwiftUI grids, and forms in SwiftUI
Book DescriptionReleased by Apple during WWDC 2019, SwiftUI
provides an innovative and exceptionally simple way to build user
interfaces for all Apple platforms with the power of Swift. This
practical guide involves six real-world projects built from
scratch, with two projects each for iPhone, iPad, and watchOS,
built using Swift programming and Xcode. Starting with the basics
of SwiftUI, you'll gradually delve into building these projects.
You'll learn the fundamental concepts of SwiftUI by working with
views, layouts, and dynamic types. This SwiftUI book will also help
you get hands-on with declarative programming for building apps
that can run on multiple platforms. Throughout the book, you'll
work on a chart app (watchOS), NBA draft app (watchOS), financial
app (iPhone), Tesla form app (iPhone), sports news app (iPad), and
shoe point-of-sale system (iPad), which will enable you to
understand the core elements of a SwiftUI project. By the end of
the book, you'll have built fully functional projects for multiple
platforms and gained the knowledge required to become a
professional SwiftUI developer. What you will learn Understand the
basics of SwiftUI by building an app with watchOS Work with UI
elements such as text, lists, and buttons Create a video player in
UIKit and import it into SwiftUI Discover how to leverage an API
and parse JSON in your app using Combine Structure your app to use
Combine and state-driven features Create flexible layouts on iPad
Who this book is forSwiftUI Projects is intended for anyone who is
already comfortable with Swift. We do not cover Swift topics in
detail, so you need to be familiar with these already. All of the
SwiftUI topics are taught as if this is the first time you've
learned them and will gradually get more difficult.
Harness the power of the latest edition with this in-depth and
comprehensive guide to the Swift language Key Features Fifth
edition of this bestselling book, improved and updated to cover the
latest version of the Swift 5 programming language Get to grips
with popular and modern design techniques to write easy-to-manage
Swift code Learn how to use core Swift features such as
concurrency, generics, and copy-on-write in your code Book
DescriptionOver the years, the Mastering Swift book has established
itself amongst developers as a popular choice as an in-depth and
practical guide to the Swift programming language. The latest
edition is fully updated and revised to cover the new version:
Swift 5. Inside this book, you'll find the key features of Swift 5
easily explained with complete sets of examples. From the basics of
the language to popular features such as concurrency, generics, and
memory management, this definitive guide will help you develop your
expertise and mastery of the Swift language. Mastering Swift 5,
Fifth Edition will give you an in-depth knowledge of some of the
most sophisticated elements in Swift development, including
protocol extensions, error handling, and closures. It will guide
you on how to use and apply them in your own projects. Later,
you'll see how to leverage the power of protocol-oriented
programming to write flexible and easier-to-manage code. You will
also see how to add the copy-on-write feature to your custom value
types and how to avoid memory management issues caused by strong
reference cycles. What you will learn Understand core Swift
components, including operators, collections, control flows, and
functions Learn how and when to use classes, structures, and
enumerations Understand how to use protocol-oriented design with
extensions to write easier-to-manage code Use design patterns with
Swift, to solve commonly occurring design problems Implement
copy-on-write for you custom value types to improve performance Add
concurrency to your applications using Grand Central Dispatch and
Operation Queues Implement generics to write flexible and reusable
code Who this book is forThis book is for developers who want to
delve into the newest version of Swift. If you are a developer and
learn best by looking at and working with code, then this book is
for you. A basic understanding of Apple's tools would be beneficial
but not mandatory. All examples should work on the Linux platform
as well.
Discover recipes for building feature-rich, reliable iOS native
apps and explore the latest features in Swift 5.3 with the help of
proven industry standard recipes, modern design techniques, and
popular strategies Key Features Understand how closures work and
make use of generics with protocols to write flexible code Discover
the fundamentals of Swift and build apps with frameworks such as
Foundation, Networking, and UIKit Get to grips with the new
features of Swift 5.3, including SwiftUI, CoreML and the Vision
Framework Book DescriptionSwift is an exciting, multi-platform,
general-purpose programming language, and with this book, you'll
explore the features of its latest version, Swift 5.3. The book
begins with an introduction to the basic building blocks of Swift
5.3, its syntax, and the functionalities of Swift constructs.
You'll then discover how Swift Playgrounds provide an ideal
platform to write, execute, and debug your Swift code. As you
advance through the chapters, the book will show you how to bundle
variables into tuples or sets, order your data with an array, store
key-value pairs with dictionaries, and use property observers.
You'll also get to grips with the decision-making and control
structures in Swift, examine advanced features such as generics and
operators, and explore functionalities outside of the standard
library. Once you've learned how to build iOS applications using
UIKit, you'll find out how to use Swift for server-side
programming, run Swift on Linux, and investigate Vapor. Finally,
you'll discover some of the newest features of Swift 5.3 using
SwiftUI and Combine to build adaptive and reactive applications,
and find out how to use Swift to build and integrate machine
learning models along with Apple's Vision Framework. By the end of
this Swift book, you'll have discovered solutions to boost your
productivity while developing code using Swift 5.3. What you will
learn Explore basic to advanced concepts in Swift 5.3 programming
Understand conditional statements, loops, and how to handle errors
in Swift Define flexible classes and structs using generics Use
advanced operators and create custom ones Build iOS apps using the
powerful features of UIKit or the new SwiftUI framework Import your
own custom functionality into Swift Playgrounds Run Swift on Linux
and investigate server-side programming with the server-side
framework Vapor Use Swift to implement machine learning models
using CoreML and Vision Who this book is forThis book is for
experienced iOS developers looking to learn about the diverse
features offered by Swift 5.3, along with tips and tricks to
efficiently code and build applications. Knowledge of general
programming concepts will assist in understanding key concepts.
A comprehensive guide for programming enthusiasts who wish to gain
a firm command of the fundamentals and advanced Swift concepts Key
Features Sixth edition of this bestselling book, improved and
updated to cover the latest version of the Swift 5.3 programming
language Get to grips with popular and modern design techniques to
write easy-to-manage Swift code Use core Swift features such as
concurrency, generics, and copy-on-write in your code Book
DescriptionOver the years, Mastering Swift has proven itself among
developers as a popular choice for an in-depth and practical guide
to the Swift programming language. This sixth edition comes with
the latest features, an overall revision to align with Swift 5.3,
and two new chapters on building swift from source and advanced
operators. From the basics of the language to popular features such
as concurrency, generics, and memory management, this in-depth
guide will help you develop your expertise and mastery of the
language. As you progress, you will gain practical insights into
some of the most sophisticated elements in Swift development,
including protocol extensions, error handling, and closures. The
book will also show you how to use and apply them in your own
projects. In later chapters, you will understand how to use the
power of protocol-oriented programming to write flexible and
easier-to-manage code in Swift. Finally, you will learn how to add
the copy-on-write feature to your custom value types, along with
understanding how to avoid memory management issues caused by
strong reference cycles. By the end of this Swift book, you will
have mastered the Swift 5.3 language and developed the skills you
need to effectively use its features to build robust applications.
What you will learn Understand core Swift components, such as
operators, collections, control flows, and functions Identify how
and when to use classes, structures, and enumerations Use
protocol-oriented design with extensions to write easy-to-manage
code Leverage design patterns with Swift to solve commonly
occurring design problems Apply copy-on-write for your custom value
types to improve performance Add concurrency to your applications
using Grand Central Dispatch and operation queues Implement
generics to write flexible and reusable code Who this book is
forThis book is for beginners with a basic understanding of
programming and experienced developers looking to learn Swift
programming. Familiarity with Apple's tools will be beneficial but
not mandatory. All examples should also work on the Linux and
Windows platforms
A step-by-step guide to learning iOS app development and exploring
the latest Apple development tools Key Features Explore the latest
features of Xcode 11 and the Swift 5 programming language in this
updated fourth edition Kick-start your iOS programming career and
have fun building your own iOS apps Discover the new features of
iOS 13 such as Dark Mode, iPad apps for Mac, SwiftUI, and more Book
DescriptioniOS 13 comes with features ranging from Dark Mode and
Catalyst through to SwiftUI and Sign In with Apple. If you're a
beginner and are looking to experiment and work with these features
to create your own apps, then this updated fourth edition gets you
off to a strong start. The book offers a comprehensive introduction
for programmers who are new to iOS, covering the entire process of
learning the Swift language, writing your own apps, and publishing
them on the App Store. This edition is updated and revised to cover
the new iOS 13 features along with Xcode 11 and Swift 5. The book
starts with an introduction to the Swift programming language, and
how to accomplish common programming tasks with it. You'll then
start building the user interface (UI) of a complete real-world
app, using the latest version of Xcode, and also implement the code
for views, view controllers, data managers, and other aspects of
mobile apps. The book will then help you apply the latest iOS 13
features to existing apps, along with introducing you to SwiftUI, a
new way to design UIs. Finally, the book will take you through
setting up testers for your app, and what you need to do to publish
your app on the App Store. By the end of this book, you'll be well
versed with how to write and publish apps, and will be able to
apply the skills you've gained to enhance your apps. What you will
learn Get to grips with the fundamentals of Xcode 11 and Swift 5,
the building blocks of iOS development Understand how to prototype
an app using storyboards Discover the Model-View-Controller design
pattern, and how to implement the desired functionality within the
app Implement the latest iOS features such as Dark Mode and Sign In
with Apple Understand how to convert an existing iPad app into a
Mac app Design, deploy, and test your iOS applications with
industry patterns and practices Who this book is forThis book is
for anyone who has programming experience but is completely new to
Swift and iOS app development. Experienced programmers looking to
explore the latest iOS 13 features will also find this book useful.
From learning about the most sought-after design patterns to a
comprehensive coverage of architectural patterns and code testing,
this book is all you need to write clean, reusable code Key
Features Write clean, reusable and maintainable code, and make the
most of the latest Swift version. Analyze case studies of some of
the popular open source projects and give your workflow a huge
boost Choose patterns such as MVP, MVC, and MVVM depending on the
application being built Book DescriptionSwift keeps gaining
traction not only amongst Apple developers but also as a
server-side language. This book demonstrates how to apply design
patterns and best practices in real-life situations, whether that's
for new or already existing projects. You'll begin with a quick
refresher on Swift, the compiler, the standard library, and the
foundation, followed by the Cocoa design patterns - the ones at the
core of many cocoa libraries - to follow up with the creational,
structural, and behavioral patterns as defined by the GoF. You'll
get acquainted with application architecture, as well as the most
popular architectural design patterns, such as MVC and MVVM, and
learn to use them in the context of Swift. In addition, you'll walk
through dependency injection and functional reactive programming.
Special emphasis will be given to techniques to handle concurrency,
including callbacks, futures and promises, and reactive
programming. These techniques will help you adopt a test-driven
approach to your workflow in order to use Swift Package Manager and
integrate the framework into the original code base, along with
Unit and UI testing. By the end of the book, you'll be able to
build applications that are scalable, faster, and easier to
maintain. What you will learn Work efficiently with Foundation and
Swift Standard library Understand the most critical GoF patterns
and use them efficiently Use Swift 4.2 and its unique capabilities
(and limitations) to implement and improve GoF patterns Improve
your application architecture and optimize for maintainability and
performance Write efficient and clean concurrent programs using
futures and promises, or reactive programming techniques Use Swift
Package Manager to refactor your program into reusable components
Leverage testing and other techniques for writing robust code Who
this book is forThis book is for intermediate developers who want
to apply design patterns with Swift to structure and scale their
applications. You are expected to have basic knowledge of iOS and
Swift.
By failing to consider those with needs different to ourselves, we
are telling these people they are not welcome in our app, and
therefore that technology as a whole, is not for them. This is not
hyperbole-23% of people in the US with a registered disability
aren't online at all, that's three times more likely than the
general population. When asked why they're not online, disabled
respondents say their disability prevents them or that using the
internet is too hard. To help your apps combat the issue of digital
exclusion, this book covers considerations and tools mobile
developers, or anyone creating mobile experiences, can use to make
mobile work better for those with disabilities-mental or
physical-and how to create a better experience for everyone.
Software is not made up of cold, unthinking algorithms. Software is
a craft in the truest sense of the word, and one of the greatest
tools you can have as a craftsperson is empathy for the people who
will be using your app. Each one of whom is an individual with
different abilities, experiences, knowledge, and circumstances.
What You'll Learn Create mobile experiences that work for as many
people as possible Incorporate a worldview of accessibility and
customer service into your design Work with accessibility tools and
techniques commonly available for developers Who This Book Is For
Mobile developers working solo or as part of a team. UX designers,
quality engineers, product owners, and anybody working in mobile.
|
|