SwiftUI Buttons (Lesson 10)

SwiftUI Buttons (Lesson 10)

CodeWithChris

3 года назад

62,485 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Yannemal
Yannemal - 04.07.2023 07:25

This video explaining all the different ways to write the Closures for buttons cleared up confusion I didn't know I even had about using a trailing Closure or writing the code within the parameter ( ) - Thanks !

Ответить
Calexh09
Calexh09 - 21.10.2022 23:33

I discovers this channel by looking for a way to add buttons to SwiftUI

Ответить
Kaleb Calverley
Kaleb Calverley - 07.10.2022 02:41

The Button instance with closure confused me, and the trailing closure is the syntax I expected so by trying to not confuse me, you confused me. Lol!

Ответить
Katja Kuitunen
Katja Kuitunen - 31.08.2022 15:28

I have been following the course and it's pretty simple. However, for some reason, printing to the console doesn't seem to work the same way as you demonstrated. Nothing appears (yes, I have activated the console).

Ответить
Spiros Painesis
Spiros Painesis - 17.08.2022 19:28

Even if I am a year late, these videos can still be used. Thank you for keeping my summer busy!👍

Ответить
E Gold
E Gold - 04.07.2022 16:34

Very good teaching method

Ответить
Douglas Rutledge
Douglas Rutledge - 13.04.2022 18:55

You are a good instructor, but this video alone doesn't help me. I do not know where to put the VStack within a folder, if only in ViewController? Plus if it worked it would make a random button. I want to know how to push changes to a Button already created. Anyway thanks, now i'm off to watch another video.

Ответить
Timba Codes
Timba Codes - 10.04.2022 03:12

I am trying to get a button in Swift or Xcode to run AppleScript code when pressed, is this possible?

Ответить
Rytam Sinha
Rytam Sinha - 14.03.2022 01:26

Hey Chris, I’m having a little trouble. Even though my button is associated with a print action, it only prints when I’m running a simulator and not in live preview. I know I’ve got the console open, I doubled checked by going through View -> Debug Area -> Activate Console. It’s not a super big problem because I can use the simulator, just kinda annoying. Any ideas on how I can get it to work like yours?

Ответить
Jookeerr
Jookeerr - 05.02.2022 13:01

Hey! On my project print() does nothing... why it's not working? I'm doing exactly same thing you did.

Ответить
Kevin Fox
Kevin Fox - 27.01.2022 08:03

First start? Jan. 8, 2022. Have never coded before. Did some HTML and such, but no coding. Just finished the War Game today, Jan 27, 2022. Hoping to create a Reset Button, and some animation to show when a player (either the player or the cpu) reaches a total score of 21.

Ответить
Pothole Paradise
Pothole Paradise - 19.01.2022 23:26

a couple mminutes

Ответить
Moksh the Sax Lord
Moksh the Sax Lord - 29.12.2021 23:12

Hey Chris
i just wanna say that im so thankful for your tutorials on Yt , i already learned alot from your 14 Days Challenge since i started from lesson 1 back then, im also doing all of your Challenges on your Web Site and still keep practicing the things i learned from you , so thank you very much for that.

Ответить
Eldho James
Eldho James - 25.12.2021 10:02

I discovered CWC On 2020

Ответить
Burak ÇAKIR
Burak ÇAKIR - 06.12.2021 00:31

thanks bro . hello from in turkey. you should come istanbul

Ответить
Jack Wang
Jack Wang - 26.11.2021 07:07

Great tutorial Chris. Absolutely loving how Apple has to be different... closure instead of lambda, protocol instead of interface, come on yall just call it what it is lol

Ответить
Jason Le
Jason Le - 18.10.2021 03:03

How come when I click on action label for Button it looks different than what you had, it says action: () -> Void, label: () -> _ ??

Ответить
semilife
semilife - 19.09.2021 01:01

Very clear simple but detailed explanation as ever.

Ответить
MaruLG
MaruLG - 30.08.2021 21:43

Thanks Chris, very useful videos

Ответить
floofloof
floofloof - 21.08.2021 17:15

Didn’t help. Kept getting errors.

Ответить
Maestro Caron
Maestro Caron - 19.08.2021 14:44

I discovered you last week 😃

Ответить
Philippe de Paula
Philippe de Paula - 16.08.2021 23:32

Hi Chris
I discovered CWC in april, when I started studying about Swift, researching on websites, videos and with your help I was able to launch my first game (Nauru) with my team. Now I'm going to make my first App.
A hug from Brazil and thank you for everything

Ответить
Nres
Nres - 19.07.2021 01:24

Your tutorials help a lot. Thank you

Ответить
Ats
Ats - 03.07.2021 10:02

I just started yesterday when I searched google about Xcode, and here I am on lesson 10 already! This channel is so good at teaching about XCode and Swift. Kudos to the team!

Ответить
mfarooqi
mfarooqi - 24.06.2021 17:14

ooohh maan.. I hate you.. where have you been for so long!!! you are super amazing

Ответить
mfarooqi
mfarooqi - 24.06.2021 17:00

i'm using xcode 12.3.. will you tutorials work on Xcode12.5.1 ?

Ответить
husen halym
husen halym - 07.06.2021 17:33

6 month since I stared. Thank you chris

Ответить
Yunus Martin
Yunus Martin - 05.06.2021 18:46

Hey Chris
i just wanna say that im so thankful for your tutorials on Yt , i already learned alot from your 14 Days Challenge since i started from lesson 1 back then, im also doing all of your Challenges on your Web Site and still keep practicing the things i learned from you , so thank you very much for that.

Ответить
No
No - 22.04.2021 13:08

hey, can you do a tutorial on how to setup that live preview simulator ?

Ответить
Josue Gialis
Josue Gialis - 20.03.2021 07:22

I discovered CWC yesterday! I was on xCode 12.1 but I tuned into a different playlist you had using xCode 10.3 and it had a different setup and lay out that I couldn't keep track of too well. I was going to stop watching the series and then I found this one, and it's exactly the same as the current version I'm on. Thank you for literally going above and beyond!

Ответить
TechTasteWander (TTW)
TechTasteWander (TTW) - 17.03.2021 20:35

i start following few months back and i found your videos very informative..

Ответить
Sebastian Gao
Sebastian Gao - 11.03.2021 13:13

how can I add the button to main story board? what kind of functions should I add to the ViewController?

Ответить
JD Ros
JD Ros - 11.03.2021 05:46

I have a question, why is it that when I change my simulator to 12 Pro Max, the background image becomes smaller than the screen despite using the ignoreSafeArea() modifier?

EDIT: I fixed it by adjusting all of them, 2x is the now main, 3x became 2x and I made a 3x one based on 12 Pro Max's resolution

Ответить
JD Ros
JD Ros - 11.03.2021 05:09

I discovered the channel just recently because I just got my new macbook and finally decided to actually learn Swift. I've been learning thru this channel for 3 days now and it has been great!

Ответить
MadCupcake
MadCupcake - 25.02.2021 13:53

im getting “Cannot find ‘LAve’ in scope” error, anyway to fix it?

Ответить
Sam85ification
Sam85ification - 23.02.2021 17:44

Chris you are the man! I’ve done Codecademy courses, bought O’Reilley books on SWIFT and iOS but nothing has taught me how to bring it all together in Xcode like you have! Thankyou!

Ответить
Nathan Davidson
Nathan Davidson - 23.02.2021 04:10

Currently at the end of this video the placement to watch the next video is covering your face fyi

Ответить
Nathan Davidson
Nathan Davidson - 23.02.2021 03:42

Found you today

Ответить
Niko Boulikas
Niko Boulikas - 11.01.2021 01:36

The best instructor I have ever followed! Good work Chris!

Ответить
John Wu
John Wu - 29.12.2020 18:32

Dec 2020, many thanks!

Ответить
Dr. Asim Ali
Dr. Asim Ali - 16.12.2020 06:55

Hello Chris. you are wonderful for sure but can you make a computer science course or maybe some other languages if that is possile

Ответить
G G
G G - 15.12.2020 06:01

I guess I discovered your channel probably 8 months back and every time you upload some new video, I look forward to watch it

Ответить
David Torres
David Torres - 14.12.2020 09:08

I am looking to better organize my code and I want to have all my delegates and data sources separate from the view controller as files, is there a way to do this in UIKit? I have tried a few things maybe using a protocol for the delegate but I get stuck

Ответить
GOK1970
GOK1970 - 13.12.2020 20:32

I found you by looking up a tutorial on swiftUI trying to build a ISS Tracker App (ISS = International Space Station) using API GPS Data.... :)

Ответить
Ansh Asthana
Ansh Asthana - 11.12.2020 17:25

is there a video or a free course i can follow to learn how to make great UI's in swift UI.

Ответить
Арджун Арджунский
Арджун Арджунский - 11.12.2020 14:57

Man, thank you for your videos!

Ответить