Muutke küpsiste eelistusi

E-raamat: SwiftUI For Dummies

  • Formaat: PDF+DRM
  • Ilmumisaeg: 12-Aug-2020
  • Kirjastus: For Dummies
  • Keel: eng
  • ISBN-13: 9781119652724
  • Formaat - PDF+DRM
  • Hind: 24,37 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Ilmumisaeg: 12-Aug-2020
  • Kirjastus: For Dummies
  • Keel: eng
  • ISBN-13: 9781119652724

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Create the app of your dreams with SwiftUI

You have that sweet, sweet app idea but think you don’t yet have the coding skills to build it? Don’t fret about someone beating you to it: get going with your idea today using SwiftUI. SwiftUI makes it fast and simple for fledgling coders to take flight and develop world class iOS apps that soar above the rest—without having to learn all the tricks of coding right away.

Swift UI for Dummies has all you need to know, showing you how to quickly get a feel for coding rules, syntax, and tools, and to develop your basic knowledge in Swift 5.0 playgrounds. It also covers the frameworks and APIs that allow you to create smooth, intuitive interfaces with no trouble at all—just dive in and you’ll be posting your first application in record time. 

  • Combining projects into workspaces and creating playgrounds
  • Employing Xcode editing tools
  • Using constants and variables and work with optional types
  • Testing your code on iOS Simulator
The time is ripe—pick up this friendly guide and you’ll soon see your iOS app ideas join 350,000 others (and counting) built using Swift.
Introduction 1(1)
About This Book 1(1)
Foolish Assumptions 2(1)
Icons Used in This Book 2(1)
Beyond the Book 3(1)
Where to Go from Here 3(2)
PART 1 GETTING STARTED WITH SWIFT ANDSWIFTUI
5(56)
Chapter 1 Introducing SwiftUI
7(18)
Understanding What SwiftUI Is
7(4)
Getting the Tools
11(10)
Hello, SwiftUI
12(2)
Automatically previewing your user interface using the canvas
14(4)
Working with Live Preview
18(1)
Generating different previews
19(2)
The Gory Details
21(4)
Info.plist
22(1)
AppDelegate.swift
22(1)
SceneDelegate.swift
23(2)
Chapter 2 Basics of the Swift Programming Language
25(36)
Basic Swift Syntax
26(2)
Constants
26(1)
Variables
27(1)
Strings
27(1)
Comments
27(1)
Basic Data Types
28(2)
Integers
28(1)
Floating-point numbers
29(1)
Booleans
29(1)
Tuples
30(1)
Arrays
30(2)
Retrieving elements from an array
31(1)
Inserting elements into an array
31(1)
Modifying elements in an array
31(1)
Appending elements to an array
31(1)
Removing elements from an array
32(1)
Dictionaries
32(1)
Retrieving elements from a dictionary
32(1)
Modifying an item in a dictionary
33(1)
Removing an item from a dictionary
33(1)
Optional Types
33(5)
Working with implicitly unwrapped optionals
35(1)
Using optional binding
36(1)
Unwrapping optionals using'?
36(1)
Using the nil coalescing operator
37(1)
Functions
38(1)
Understanding input parameters
38(1)
Returning a value
39(1)
Flow Control
39(2)
If-Else statement
40(1)
Ternary conditional operator
40(1)
Switch statement
40(1)
Looping
41(2)
For-In loop
42(1)
While loop
42(1)
Repeat-While loop
42(1)
Control transfer statements
42(1)
Range operators
43(1)
Structures
43(4)
Memberwise initializers
44(1)
Structures as value types
45(2)
Classes
47(4)
Defining a class
47(1)
Understanding properties
47(2)
Using methods in classes
49(1)
Trying out the self property
50(1)
Closures
51(4)
Understanding closures
51(1)
Using functions as closures
52(1)
Assigning closures to variables
52(1)
Writing closures inline
53(1)
Understanding type inference
53(1)
Using shorthand argument names
54(1)
Working with the operator function
54(1)
Using trailing closures
55(1)
Protocols
55(6)
Defining and using a protocol
56(1)
Conforming to a protocol
56(1)
Using the Codable protocol
57(2)
Using the some keyword
59(2)
PART 2 UNDERSTANDING THE BASICS OF SWIFTUI
61(144)
Chapter 3 Getting Started with the Basics of SwiftUI
63(24)
Taking a Look at SwiftUI Views
63(7)
Conforming to the View protocol
64(2)
Using modifiers
66(1)
Stacking modifiers
66(1)
Using the Inspector
67(3)
Displaying an Image
70(5)
Using modifiers on the Image view
72(1)
Resizing images
73(2)
Displaying a Button
75(3)
Customizing the button
76(1)
Adding actions
77(1)
Stacking the Views
78(7)
VStack
79(1)
HStack
80(5)
Putting on the Finishing Touches
85(2)
Chapter 4 Handling User Inputs and Custom Views
87(26)
Looking at Input Views
87(16)
TextField
88(4)
SecureField
92(1)
Toggle
93(1)
Slider
94(4)
Stepper
98(2)
Picker
100(3)
Composing Custom Views
103(10)
Composing the custom view
104(7)
Using the custom view
111(2)
Chapter 5 Displaying Lists of Items
113(30)
Using the List View to Display Items
113(7)
Customizing the rows
114(2)
Adding rows programmatically
116(3)
Alternative way to generate rows in a List view
119(1)
Displaying the List within a NavigationView
120(13)
Making the items tappable
121(2)
Adding rows
123(2)
Using the Identifiable protocol
125(1)
Deleting rows
126(2)
Editing rows
128(2)
Moving rows
130(3)
Displaying Sections
133(5)
Displaying sections from a dictionary
134(2)
Changing the style of the List view
136(2)
Previewing in Light and Dark Modes
138(5)
During runtime
138(1)
During design time
139(4)
Chapter 6 Creating Navigation and Tabbed Applications
143(30)
Creating Navigation Apps
144(23)
Working with the two key views in navigation-style apps
145(3)
Navigating to a page
148(1)
Navigating programmatically
149(2)
Creating a news reader application
151(16)
Creating Tabbed Applications
167(6)
Using the TabView
168(1)
Selecting TabViews programmatically
169(4)
Chapter 7 Formatting Your User Interface
173(32)
Laying Out Views Using Stacks
173(22)
VStack
174(12)
HStack
186(4)
ZStack
190(5)
Using Container Views
195(10)
Form and Section
198(2)
Group
200(3)
Divider
203(2)
PART 3 EXPLORING WITH SWIFTUI IN MORE DETAIL
205(58)
Chapter 3 Understanding State Management in SwiftUI
207(28)
Using a Property Wrapper
207(2)
Maintaining State Using State Variables
209(4)
Binding State Variables
213(5)
Managing State from External Objects
218(5)
Using the ObservableObject protocol and Published
219(2)
Using the @ObservedObject
221(2)
Sharing Objects
223(5)
Accessing Built-in Environment Variables
228(7)
Defining your own environment keys
230(1)
Using your own environment keys
231(4)
Chapter 9 Using Legacy UIKit Views and View Controllers in SwiftUI
235(28)
Using UIKit in SwiftUI
236(11)
Understanding the UIKit View Controller life cycle
237(2)
Understanding the SwiftUI view life cycle
239(8)
Using the UIViewRepresentable Protocol for UIKit Views
247(6)
Activitylndicator
248(3)
WebView
251(2)
Using the UIViewControllerRepresentable Protocol for UIKit View Controllers
253(10)
Creating the ImagePickerViewController
254(2)
Handling events using coordinators
256(2)
Defining the methods in the Coordinator class
258(2)
Using the updated ImagePickerViewController
260(3)
PART 4 PERFORMING ANIMATIONS AND DRAWINGS
263(88)
Chapter 10 Drawings and Special Effects
265(34)
Drawing Using the Five Built-in Shapes
266(11)
Rectangles
266(4)
Rounded rectangles
270(3)
Circles
273(1)
Capsules
274(1)
Ellipses
275(2)
Clipping with the Basic Shapes
277(4)
Drawing Custom Shapes
281(11)
Drawing lines
283(1)
Filling the shape
284(2)
Drawing a border
286(1)
Drawing an arc
287(2)
Combining fill and stroke
289(3)
Using Special Effects in SwiftUI
292(7)
Blend modes
292(5)
Blurs
297(1)
Saturation
298(1)
Chapter 11 Performing Animations in SwiftUI
299(24)
Understanding How to Animate
299(8)
Specifying the type of animation
303(1)
Repeating the animation
303(1)
Stopping the animation
304(3)
Performing Your Own Animation
307(7)
Rotating in 2D
307(2)
Rotating in 3D
309(5)
Creating a Custom Progress Indicator
314(9)
Indeterminate progress indicator
314(4)
Determinate progress indicator
318(5)
Chapter 12 Creating a Complete Project
323(28)
Understanding What the App Does
323(2)
Building the Project
325(21)
Creating the layouts
325(3)
Defining the news sources and observable objects
328(2)
Fetching the data
330(1)
Displaying the news headlines
331(3)
Displaying the images
334(2)
Displaying the news
336(2)
Creating the share sheet
338(1)
Creating the preferences view
339(5)
Persisting the user's preferences
344(2)
Deploying the App
346(5)
PART 5 THE PART OF TENS
351(28)
Chapter 13 Ten SwiftUI Tips and Tricks
353(22)
Resuming Live Preview
353(1)
Implementing Localization
354(4)
Combining Text Views
358(2)
Creating Custom Modifiers
360(2)
Displaying Multiple Alerts
362(1)
Enabling Debug Preview
363(1)
Previewing Using Different Devices
364(4)
Dark Mode Only Works On NavigationView
368(2)
Extracting Subviews
370(3)
Displaying a Context Menu
373(2)
Chapter 14 Ten Great SwiftUI Resources
375(4)
Apple
375(1)
SwiftUI by Example
376(1)
100 Days of SwiftUI
376(1)
Gosh Darn SwiftUI
376(1)
SwiftUI Hub
376(1)
Awesome SwiftUI
377(1)
raywenderlich.com
377(1)
Swift Talk
377(1)
About SwiftUI
377(1)
Stack Overflow
378(1)
Appendix: Code Snippets For Common Swiftui Views 379(8)
Index 387
Wei-Meng Lee (Singapore) is founder of Developer Learning Solutions, a firm specializing in hands-on training for software developers. He teaches courses in mobile development, blockchain, machine learning, and AI. He is author of a number of books, including Beginning Swift Programming (Wiley).