Lesson 1 Flashcards

SwiftUI Intro

1
Q

what is SwiftUI

A

tool we use to build apps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

3 pros of SwiftUI

A
  1. displays views on screen
  2. handle user interaction
  3. manage state and data flow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Xcode: app struct

A

main entry point of app in xcode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Xcode ContentView

A

represents UI of app in xcode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Xcode assets

A

catalog of images, colors, files, etc to use in app

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Xcode .xcodeproj

A

metadata about app

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ContentView Tour: import SwiftUI

A

imports app development tools (types, etc) that we can use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ContentView Tour: ContentView

A

view - struct that conforms to view –> can be displayed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ContentView Tour:
var body : some View {…}

A

view protocol requirement –> what this view displays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Preview {…}

A

enables interactive reloading previews –> iPhone display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

HStack {..}

A

arranges elements in order from left to right (leading to trailing)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

VStack{…}

A

arranges elements in order from top to bottom

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

2 parameters of HStack and VStack

A
  1. alignment
  2. spacing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly