SwiftUI Modifiers (Customize Your SwiftUI Elements) - Lesson 3

  Рет қаралды 23,422

CodeWithChris

CodeWithChris

Күн бұрын

Пікірлер: 117
@CodeWithChris
@CodeWithChris 5 жыл бұрын
QOTD ⚡ Do you like SwiftUI better than UIKit? Let me know! 👇 Kick start your own app with my free 7 Day App Action Plan ➡️ bit.ly/7dplan
@rahulkambad7121
@rahulkambad7121 4 жыл бұрын
Yes SwiftUI is more better than UIKit, Your learning videos are also too good and easy to understand
@aacosta2007
@aacosta2007 4 жыл бұрын
Hi First of all I have to tell you I really enjoy your videos you're probably the best teacher out there in SwiftUI. On the other hand it would be good for those of us doing the tutorials to see the code you wrote for the assignment you leave at the end of these videos. Maybe put a 1 sec screenshot of the "answer" at the end of the video or at the beginning of the next lesson idk. I know there is no "1 correct answer", but just to have an idea of how you did it and compare it with how we did it, and see more efficient ways to do it (probably like you) and get to know new functions and more. Thanks! Great job btw. Much appreciated all of your videos
@vicentechavez9961
@vicentechavez9961 4 жыл бұрын
Can you please add the code for the challenge. Just to double check our solution.
@ric7576
@ric7576 4 жыл бұрын
Hey Chris ! Just a question if I may, about the Hardcore Avocado Toast app view. I have managed to do most of it except get the blending effect at the top and bottom of the breakfast pic. So started off creating a Z Stack, with the TopGradient and BottomGradient pics in a VStack, set them to ignoresafe area. Then next in the ZStack I put the breakfast pic itself, but didn't ignore safe areas. So you can clearly see the black areas of the pictures it is stacked on top of. But I cannot find a way to blend the edges. I looked in the Attributes Inspector and found a blend modifier, but couldn't get it to work without affecting the colours of the pic itself. Apart from that I managed to get the textfields and heart log on top of the pic, by placing them in another VStack on top of the breakfast pic as the third element in the ZStack Any tips gratefully appreciated Many thanks Tariq
@atulyaprakash2585
@atulyaprakash2585 4 жыл бұрын
I like Swift UI much more than UIkit
@ramagarimidi
@ramagarimidi 5 жыл бұрын
Chris you are the best person ever! Unlike other youtubers you read comments that are really old and you even provide answers for them. And you team down at code crew.codewithChris is amazing I get help when I need it. 1st coding channel on KZbin from my opinion. You are really amazing
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Thank you so much for your kind words! Awesome to know you appreciate all our efforts. Have a nice day! :) Kat
@holycrosscv
@holycrosscv 5 жыл бұрын
The order of modifiers! THAT is a really helpful piece of information!! Thanks again for another amazing tutorial!
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Thank you for the feedback! 🙌🙌 Kat
@sadiqqasmi
@sadiqqasmi 5 жыл бұрын
Just complete challenge SwiftUI is really awesome than storyboard, Love it and love the way you teaches : )
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Thank you! Great job on finishing the challenge. -Kat
@devhopes
@devhopes 4 жыл бұрын
Can you share it? If i supply my email, can you send to my email?
@rajeevkalangi2472
@rajeevkalangi2472 4 жыл бұрын
I've been into iOS programming lately from android... You are so soothing to listen and I'm gaining a lot brother... Thanks for your help...
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Happy to hear that! How do you like iOS app development so far? - Kat
@rajeevkalangi2472
@rajeevkalangi2472 4 жыл бұрын
@@CodeWithChris ... I'm liking it... You are so patient in explaining in detail the critical needed points though they are simple to understand... I like that approach so better brother as a beginner... Will drill through all your videos soon...
@arifakcay4992
@arifakcay4992 4 жыл бұрын
Hello Chris, you are talking about simple but really important points. thank you for your effort.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
You are welcome! - Kat
@yoanbele7802
@yoanbele7802 4 жыл бұрын
Hey Chris, great video! You explain the concepts very well. Keep going on, you nailed it 👍🏾
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Glad you liked it! Thank you! 🙌 - Kat
@Vijjuuuu1
@Vijjuuuu1 4 жыл бұрын
Really good Swift UI tutorial.. Please keep up this work :) I was stuck at the challenge.. and then visited the community group and it helped me..!
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Glad it helped! Stay tuned for more SwiftUI tutorials! - Kat
@ric7576
@ric7576 4 жыл бұрын
How do I find the community group please?
@marcogarzon7043
@marcogarzon7043 4 жыл бұрын
Awesome to have these challenges!
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thank you! 🙌 - Kat
@srujan9539
@srujan9539 2 жыл бұрын
Your Content is Really awesome 💛💛💛
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You are more awesome! -Arthur
@TJM-96
@TJM-96 4 жыл бұрын
Hey Chris, I am very new to Swift and I just started learning SwiftUI today through your playlist, SwiftUI is awesome and its going to make the project I want to work on so much easier to build the UI for, but the project needs to connect to an AWS backend with a MySQL database, can you build a tutorial to show how to build an app that can connect to an AWS backend and receive values as JSON objects / JSON strings?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
"Hello, sadly we dont have a tutorial using AWS, however we have an article that you can refer to easily manipulate JSON here codewithchris.com/swiftyjson/ - Francis "
@davidramery1761
@davidramery1761 5 жыл бұрын
Hi Chris, I've discovered your channel a few days ago, waouh !!!! I've completed the video challenge and i've got one for you : do your next video in french please, my english is not very good. :D Thanks a lot ! A french beginner in coding
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Thanks for learning with us! If you click the Subtitles in the Settings, there's an option for Auto-translate. Hope that helps! Kat
@judy8821
@judy8821 5 жыл бұрын
Thank you for the challenge, Chris. I think I did Okay. Wasn't sure how to get the breakfast picture to merge into the backgrounds but I think I got it close.
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Great job! Thanks for watching! Kat
@xoverwatch8826
@xoverwatch8826 4 жыл бұрын
Yeah me too
@lankystudent
@lankystudent 5 жыл бұрын
These are great tutorials
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Thank you! 🙌🙌 Kat
@rubengam3r
@rubengam3r 4 жыл бұрын
Chris not sure if you have run into this. But when I load project on to a device the image is not full screen. Even though the preview shows that it is. Any thoughts on that?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, not sure about this maybe you can try changing the content mode to fill just to be sure - Francis
@geoffplywood6112
@geoffplywood6112 4 жыл бұрын
Helpful demo, thank you.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Glad it was helpful Geoff! -Kat
@litusfixe9629
@litusfixe9629 4 жыл бұрын
So far I feel better with swiftUI! Great tutorials by the way. Are you going to upload the match app for swiftUI???
@CodeWithChris
@CodeWithChris 4 жыл бұрын
We'll see what we can do. Thanks for the support! :-) -Arthur
@devhopes
@devhopes 4 жыл бұрын
Great Lesson - highly informative :)
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Welcome! - Kat
@amurthar2058
@amurthar2058 4 жыл бұрын
Can u tell me the tutorial which cover topic of alerts??
@CodeWithChris
@CodeWithChris 4 жыл бұрын
It's in the work but if you want to speed up the process, you can push for that video to be made sooner, come and vote: codecrew.codewithchris.com/c/requests/ @AdrienVillez
@devhopes
@devhopes 4 жыл бұрын
I can't find the assets for this lesson :|. I can get the challenge assets but not the ones for the lesson. Chris. mentioned there is a Welcome Lesson that links to all the assets, code, etc.. can you post that link?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Here are all of the resources: kzbin.info?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY kzbin.info?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip kzbin.info?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 kzbin.info?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
@devhopes
@devhopes 4 жыл бұрын
@@CodeWithChris Thank you Kat, it was found in the 3rd link you provided: kzbin.info?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 It gave me the file ::SwiftUI M1L04 Starter Project.zip - which should have been in SwiftUI M1L03.zip - in case you want to update you file location, thank you for your quick response. I love the CodeWithChris channel and would recommend it 100%
@carlosfernandez6470
@carlosfernandez6470 5 жыл бұрын
Love this videos Chris thank you
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Welcome and thank you for watching! Kat
@jdrsims
@jdrsims 3 жыл бұрын
Hi, Chris what's the difference between Spacers() and .offset? I used mostly offsets for the challenge and it looks exactly like your view. Thanks for the challenges it really helps retain info.
@CodeWithChris
@CodeWithChris 3 жыл бұрын
"Hello, a Spacer is usually some sort of view that takes up space by itself, so its like a ""blank"" item, while an offset is making the margins or spacing bigger between different views - Francis"
@GG-hk5iz
@GG-hk5iz 4 жыл бұрын
Hi Chris .Thanks for your tutorial . Do you somewhere provide the solution of the challenge as well?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Unfortunately, for this one, we don't have it. - Kat
@BattleDrumz
@BattleDrumz 5 жыл бұрын
Nailed the challenge... now what? :P
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Awesome! Here are our other SwiftUI tutorials: kzbin.info/aero/PLMRqhzcHGw1Z-lZaaun3A3mV9PbEfHANI -Kat
@bitsurfer0101
@bitsurfer0101 4 жыл бұрын
Is the Text() command equivalent to a TextField in swift? I noticed that it wraps automatically.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, this might be the case or it could be a variable of label - Francis
@甜甜-d4e
@甜甜-d4e 4 жыл бұрын
Where are the image asset CHRIS I CAN'T find it plz help me
@CodeWithChris
@CodeWithChris 4 жыл бұрын
It's just in the video description. - Kat
@LoicGottwalles
@LoicGottwalles 4 жыл бұрын
I don't manage to stay in the safe area for the challenge. My text and my heart image go beyond. What can I do?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, make sure that the anchors for the constraints are referencing to the nearest neighor which is the superview (or the safeview), you can click on those lines at the side of the uielement and change the values from there - Francis
@mamtasasotri7045
@mamtasasotri7045 3 жыл бұрын
Can somebody please tell me where the challenges folder is and also where can I find solutions to these challenges!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Hello, allow our technical support staff to help. Post your concern here: codecrew.codewithchris.com -Arthur
@IkaayEbi
@IkaayEbi 4 жыл бұрын
Hey Chris! Thanks so much for the tutorial , super helpful. I have a question regarding the challenge. I have the "Hardcore Avo Toast" text and Health_heart in a HStack (HS) which is then embedded in a VStack (VS) along with the bottom text. The HS and the bottom text are separated by a Spacer element which works fine and all stays within the Safe Area. At this point, the whole VS is in the Safe Area but the top two elements have no Spacer between them. When I try to add one, the VS expands out of the safe area and some of the top left text and top right image are off-screen. What is causing this ? Why is my VS going out of the safe area without my telling it to? Thanks !
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, I'm not really sure how to help you if we cant see your codes and a screenshot. why dont you head on over to our forum at codecrew.codewithchris.com and see you there :) - Francis
@kayajones527
@kayajones527 5 жыл бұрын
where can i find the code from the challenge
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Unfortunately, there's no source code available for this.:( -Kat
@borriekerrie942
@borriekerrie942 4 жыл бұрын
Another awesome video!!! I am stuck however... got everything right on the challenge project, except the transparency(opacity) of both the gradient pictures.... please help - what is the correct "Modifier" to lighten the gradient pics? Or is there another method to be implemented?
@borriekerrie942
@borriekerrie942 4 жыл бұрын
ahh.... I fixed it myself.....
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, glad it's fixed now! If you need coding help, you can always ask questions in the community group here. bit.ly/CodeCrewCommunity - Kat
@blackballization
@blackballization 4 жыл бұрын
I Like it but also still worry about if i can use it for implement the UI for my current project or i'll phase some hurdles because my project is large with complex UI , Thnx
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, as long as you can still manage and read the codes for your UI then it should be fine. Try adding comments so it will be easier to remember especially on bigger projects - Francis
@newbiegeek8407
@newbiegeek8407 4 жыл бұрын
till now i like swiftUI more than UI kit because it is much faster and easier
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Cool! - Kat
@abialif3314
@abialif3314 2 жыл бұрын
Where can I find the solution for the challenge ?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello, kindly post your question here so that our tech support staff can assist you: codecrew.codewithchris.com. Thank you! -Arthur
@glenreidy
@glenreidy 4 жыл бұрын
Where are the assets for the lesson?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
It's in the video description: kzbin.info?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip&v=MJP60XnN4us&event=video_description&redir_token=VzA0hCOWatfZ8sAuWaxCCpumPM58MTU4NjczODU0N0AxNTg2NjUyMTQ3 - Kat
@devhopes
@devhopes 4 жыл бұрын
@@CodeWithChris This link is to the Challenge assets and. not to the Lesson Images: ie : pinkbuilding is not in these assets
@newbiegeek8407
@newbiegeek8407 4 жыл бұрын
chris can you make a cheat sheet about what each modifier does
@CodeWithChris
@CodeWithChris 4 жыл бұрын
That's awesome. Can you send us this request here? cwc.to/request - Kat
@judy8821
@judy8821 5 жыл бұрын
SwiftUI is going to be better. Needs work yet. I really need a collectionView!! I created a match game like the one you did in UIKit and would like to convert it to SwiftUI before I publish it.
@CodeWithChris
@CodeWithChris 5 жыл бұрын
We'll probably do a match game tutorial in SwiftUI in the future, it's on our list! :) Kat
@ich_16
@ich_16 5 жыл бұрын
i like how SwiftUI is easy and fast to see the changes on canvas but it don't give me freedom that UIKit has , i cant write functions as i want and line it as UIKit , may be because i have using UIKit many years so it feels new 😬
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Yes, SwiftUI is great but it has its own drawbacks. -Kat
@boofy936
@boofy936 5 жыл бұрын
Hey Chris, been watching your tutorials for a while now. I have a question. I am developing my first app and I would like to have a website to go along with it. How can I set it up so all the user data retrieved from the mobile app and the website go to the same place? For example, how does postmates.com and their mobile app retrieve data from both the webpage and the app?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hi! Can you kindly head over to our forum community so that our technical support staff can assist you regarding this? codecrew.codewithchris.com :-) Thanks a ton! -Arthur
@LUKAS-bb4jc
@LUKAS-bb4jc 5 жыл бұрын
I have a cool video idea for you : in other videos from you I saw that you have the original iPhone, you could do a video of you building an app for that device. Have a nice day 😃
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Hello Lukas! Thanks for the suggestion! Kat
@glenmoor3
@glenmoor3 5 жыл бұрын
Different. For example setting the background colour of button 2 when pressing button 1 was easy using storyboard, can't work out how to do it using swiftui
@judy8821
@judy8821 5 жыл бұрын
You need to use a State variable which Chris covers in a later tutorial but here is a snipet of the code I wrote to get you started. I wonder, though, how you could choose the color to put in from an array of colors, maybe change Color.green, etc. to a variable itself. I'll have to try it later. struct ContentView: View { @State private var changeBackground: Bool = false var body: some View { VStack { Spacer() Button(action: { self.changeBackground.toggle() }) { Text("BUTTON1").font(.title).fontWeight(.heavy).foregroundColor(.white).background(Color.black) } Spacer() Button(action: { }) { Text("BUTTON2").font(.title).fontWeight(.heavy).foregroundColor(.white).background(changeBackground ? Color.green : Color.blue) } Spacer() } } }
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thanks for helping each other out. Keep on going! :-) -Arthur
@18nikhilchauhan80
@18nikhilchauhan80 5 жыл бұрын
great
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Thank you! Kat
@glenreidy
@glenreidy 4 жыл бұрын
If you want more than one line of text type Thanks nemptna
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Awesome! Thanks. - Kat
@MartensFamilyHomeMovies
@MartensFamilyHomeMovies 5 жыл бұрын
"Now that I have showed you". is actually "Now that I have shown you"
@CodeWithChris
@CodeWithChris 5 жыл бұрын
Thanks for the feedback. -Kat
@tridaynee
@tridaynee 4 жыл бұрын
i like SwiftUI more than uiKit
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Cool! We have a lot more SwiftUI tutorials coming up. I'm sure you'll learn a lot from them. :-) -Arthur
@GoingYachting
@GoingYachting 4 жыл бұрын
A
@CodeWithChris
@CodeWithChris 4 жыл бұрын
B, C, D, E? :-)
State Properties in SwiftUI - Lesson 4
11:44
CodeWithChris
Рет қаралды 18 М.
SFSymbols - Why use them?
10:52
CodeWithChris
Рет қаралды 20 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
SwiftUI Masterclass: Build To Do List App
2:42:49
iOS Academy
Рет қаралды 144 М.
Ch. 1.2 Background, Padding, Modifier Order (You Are Awesome SwiftUI app)
10:21
Prof. John Gallaugher
Рет қаралды 2,4 М.
SwiftUI vs UIKit (See UI built 3 different ways)
22:38
CodeWithChris
Рет қаралды 82 М.
Should you use View Modifiers OR View Extensions in SwiftUI?
7:22
SwiftUI Data Flow and View Composition Tutorial
11:58
CodeWithChris
Рет қаралды 19 М.
Custom containers - Views and Modifiers SwiftUI Tutorial 10/10
6:06
Xcode Tutorial - Step by Step for Beginners
56:52
CodeWithChris
Рет қаралды 365 М.
SwiftUI Tutorial: SwiftUI Stacks (HStack, VStack, ZStack)
5:19
Swift Goose
Рет қаралды 9 М.