Тёмный

How to use a Toggle to create a Switch in SwiftUI | Bootcamp #37 

Swiftful Thinking
Подписаться 50 тыс.
Просмотров 17 тыс.
50% 1

The Toggle() is a convenient component that allows a user to switch something on or off. In this video we will learn how to implement a switch and customize it to make it's tint color adapt to our iOS application's theme! The toggle is a neat little UI component that is often overlooked by developers. It's easy-to-add for developers and even easier-to-use for your users.
Next video: • Picker and PickerStyle...
Last video: • How to use TextEditor ...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-t...
DISCORD: / discord
GITHUB: github.com/Swi...
SAY THANKS: www.buymeacoff...

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@captaincaptain85
@captaincaptain85 3 года назад
Again another great video. I really can't find the proper words to thank you. You are really awesome Nick. I learned so much . You are among very very few people on YouTupe who could present Swift learning like a professional. Not everybody could deliver the information in an easy , straight forward, & attractive way like what you doing. We are very thankful to you for making these videos. If I would recommend a RU-vid channel for Swift programming starter, it is going to be yours , no question asked. thanks so so much again . hat off :)
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Captain captain!! Thank you so much for the comment. My goal is exactly that - make it as easy as possible for newcomers to learn. I'm glad you're enjoying the course :)
@bobbynwm
@bobbynwm Год назад
Fully agreed! Will do the same - will fully recommend your channel Nick, to anyone I might hear to be interested in learning swiftUI the right way
@Kilo_Loco
@Kilo_Loco 3 года назад
Keep up the great work 👍🏽
@SwiftfulThinking
@SwiftfulThinking 3 года назад
No way... it's really Kilo Loco!!! Thanks man. Love your channel.
@30guarino
@30guarino 3 года назад
@@SwiftfulThinking surprised to see Kilo on here as well..... Pretty soon Nick is going to be in the Big Leagues with the rest of the Swift You Tubers.....Good Luck!
@Benbbr
@Benbbr 3 года назад
Time for a collaboration video, don't you think?
@aliDaTeslayaaMan
@aliDaTeslayaaMan 2 года назад
This series has been extremely helpful, thanks for all your hard work!
@valerieokelly6224
@valerieokelly6224 2 года назад
This serie is just incredible ! Thank you so much Nick 😎👍
@stefanlindholm3284
@stefanlindholm3284 2 года назад
Another great video! Thank you! (Still annoyed that Apple hasn't fixed the Color Literal bug in Xcode 😠)
@JeckyKA
@JeckyKA 3 года назад
very very useful, thanks a lot!
@naragara
@naragara Год назад
Thank you for your video.😄
@anhhanry7167
@anhhanry7167 2 года назад
every time I watch your tutorial video, I learn something new ( in Swift) , thanks a lot, ... oh btw, there is something you forgot in the video: every time the text changed ( offline / online ) -> notice there's a flicker on the screen ( due to the text count is different ) , is there a way to fix this ? ( meaning the changing of the text do not produce anything on screen except the text )
@swiftuihok
@swiftuihok 9 месяцев назад
use the modifier directly under Toggle if the tint deprecated.
@최승기-g8f
@최승기-g8f 3 года назад
Thank you!!!
@Classkit_tech
@Classkit_tech Год назад
❤❤thank you
@relax_music668
@relax_music668 3 года назад
How to use icloudkit completely? Can you show video ?
@SwiftfulThinking
@SwiftfulThinking 3 года назад
I'll be doing several videos on CloudKit soon :)
@frankopokukoduah194
@frankopokukoduah194 8 месяцев назад
is there a difference between .toggle() which is a method and toggle(isOn: ){} which is a view?
@preuton
@preuton Год назад
Is there like in javascript a console.log(toggleIsOn) method in Swift?
@SwiftfulThinking
@SwiftfulThinking Год назад
print()
@preuton
@preuton Год назад
@@SwiftfulThinking thnx
@videodudeler
@videodudeler 2 года назад
How would you adjust the code to add multiple lines of text? for example if you wanted to do like a checklist with this.
@xBL1NDx
@xBL1NDx 3 года назад
Hello, great videos!! I have a question, is possible work with toggle() like, if toggle is on show that data in other view? like service ongoing or service finished, but in separate views.
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Hey Joao! Yes, anything is possible :) Toggle just changes that state of a boolean, so you can do anything based on the boolean's value
@luisguzman-uo6on
@luisguzman-uo6on 3 года назад
Hey just saw the video is possible to create an alert using a toggle?
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Hey Luis! Yes, of course. You can present an alert using the same a @State boolean that is connected to the Toggle()
@TeemoChan
@TeemoChan Год назад
when I use tint it tells me it will be deprecated, anyone knows a substitute?
@rayhaanalykhan
@rayhaanalykhan 9 месяцев назад
Toggle(isOn: $toggleIsOn) { Text("Change status") } // .toggleStyle(SwitchToggleStyle(tint: .pink)) // 'SwitchToggleStyle(tint: .pink)' is deprecated .tint(.purple)
@jaylensmith6308
@jaylensmith6308 2 года назад
When you’re too use to Button(action: ) 🥺
Далее
Picker and PickerStyles in SwiftUI | Bootcamp #38
19:56
How to use NavigationStack in SwiftUI | Bootcamp #62
23:59
Mcdonalds cups and ball trick 🤯🥤 #shorts
00:25
Просмотров 484 тыс.
Мои РОДИТЕЛИ - БОТАНЫ !
31:36
Просмотров 487 тыс.
Пчёлы некроманты.
00:46
Просмотров 24 тыс.
How to create custom models in SwiftUI | Bootcamp #49
18:13
VStack, HStack, and ZStack in SwiftUI | Bootcamp #10
21:37
Why You Should Use The SwiftUI Coordinator Pattern
18:45
SwiftUI GeometryReader
27:53
Просмотров 11 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
How to use @FocusState in SwiftUI | Bootcamp #60
16:28
Mcdonalds cups and ball trick 🤯🥤 #shorts
00:25
Просмотров 484 тыс.