- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
SwiftUI Find The Error Challenge! (easy) #swiftui
Here are the answers below!
Level 1:
1) @State var showSettings: Bool = false
2) @State var showSettings: false = Bool
(Number 1 is correct, the second one has the type and value switched)
Level 2:
(looking at the padding)
1) .padding([.left, .bottom], 10)
2) .padding({.leading, .bottom], 10)
(Number 2 is correct. We don’t say “.right” or “.left”, we say .leading and .trailing)
Level 3:
1) HomeScreen(environmentObject: vm)
2) HomeScreen().environmentObject(vm)
(Number 2 is correct. This is in reference to passing in a @StateObject using .environmentObject, and the first syntax is for passing in expected parameters.)
How many did you get?
(Working on MacOS? Check our my apps RestEyes and Focus Bear to be productive without eye strain! Happy Coding :)
#swiftUI #appDevelopment #coding #learningToCode #iosAppDevelopment
Видео SwiftUI Find The Error Challenge! (easy) #swiftui канала App Chat
Level 1:
1) @State var showSettings: Bool = false
2) @State var showSettings: false = Bool
(Number 1 is correct, the second one has the type and value switched)
Level 2:
(looking at the padding)
1) .padding([.left, .bottom], 10)
2) .padding({.leading, .bottom], 10)
(Number 2 is correct. We don’t say “.right” or “.left”, we say .leading and .trailing)
Level 3:
1) HomeScreen(environmentObject: vm)
2) HomeScreen().environmentObject(vm)
(Number 2 is correct. This is in reference to passing in a @StateObject using .environmentObject, and the first syntax is for passing in expected parameters.)
How many did you get?
(Working on MacOS? Check our my apps RestEyes and Focus Bear to be productive without eye strain! Happy Coding :)
#swiftUI #appDevelopment #coding #learningToCode #iosAppDevelopment
Видео SwiftUI Find The Error Challenge! (easy) #swiftui канала App Chat
swiftui swiftui tips swiftui for beginners macos developement macos ios apple development learning swiftui how to make an app making ios app on shorts making app entirely on reels building ios app from scratch viewmodel frames settings views text tracker app on reels swiftui help CoreData app store publishing ios app
Комментарии отсутствуют
Информация о видео
24 сентября 2024 г. 16:01:01
00:00:15
Другие видео канала

![[SF Symbols in SwiftUI] App on Shorts - Pt. 44](https://i.ytimg.com/vi/PTqGEwNKLuE/default.jpg)

![[Enums / .rawvalue / NEAT TRICK] App on Shorts - Pt. 17 #swiftui #iosapp #iosdev #learntocode](https://i.ytimg.com/vi/iqekIwtcIm4/default.jpg)
![[View Parameters in SwiftUI!!!] App on Shorts - Pt. 16 #swiftui #iosapp #iosdev #learntocode](https://i.ytimg.com/vi/p6jsyVFblQo/default.jpg)

![[Using ViewModel & Dummy Data in SwiftUI] App on Shorts - Pt. 33](https://i.ytimg.com/vi/FrcVSz9ongo/default.jpg)



![[Looping in array INDEX] App on Shorts - Pt. 41](https://i.ytimg.com/vi/6GRKu0wng2s/default.jpg)
![[TabView and For Loop Intro] App on Shorts - Pt. 28 #swiftui #iosapp #iosdev #learntocode](https://i.ytimg.com/vi/gMF2Ai5MttA/default.jpg)




![[Enum Specifications in SwiftUI] App on Shorts - Pt. 15 #swiftui #swiftuitutorials #learntocode](https://i.ytimg.com/vi/QC8mBysIojM/default.jpg)

![[Customizing Text w/ Modifiers SwiftUI] App on Shorts - Pt. 20 #swiftui](https://i.ytimg.com/vi/M0Eww_ZS8gw/default.jpg)


![App on Shorts - Pt. 5 [Adding Groups / Folders] #swiftui #iosapp #iosdev #learntocode #codingproject](https://i.ytimg.com/vi/2buZOf03SCc/default.jpg)