CodeWithChris is a wonderful and easy way to learn SwiftUI. I'm a retired (70 years old) engineer, programer, product manager and substitute teacher. Chris is one of the best teacher I've seen in a long time. Thank you Chris.
I just finished this series of tutorials and found your teaching style to be an exact match for how I learn. I especially liked how you showed the obvious/intuitive way to approach something, and then re-did it to be slightly more elegant and sustainable. That was invaluable. Thank you!
Thanks a lot, Chris. This is my first intro to SwiftUI, and I particularly like that you show the "long code", and the abbreviate it. Besides that I find your pace and friendly voice very nice.
Thanks @CodeWithChris for this tutorial. Sometimes it is a lot more practical to watch a lesson instead of having to adventure off by yourself after 8 hours of daily work.
Hey Chris just want to say I really appreciate this video. It's helping me acclimate to the new framework and it's great to have a well-constructed tutorial such as this with clear commentary/explanations.
I love your videos Chris. You're easily one of the best Xcode teachers here on CZcams, if not the best. I have a little improvement suggestion tho .. can you next time show us the solutions for the exercises you give us in the videos ? That would help a lot, other than that please keep your great work as it is ... I love your tutorials man 👍🏼
Great tutorial! This is my first delve into coding and helped a lot. I managed to include horizontal columns and separate the credits into credits and winnings. My next challenge is to add a cash out button that adds the winnings back into the credits just to see if I can do it
I couldn't find the assets folder down in the description so I made my own. I created the Checkmark Heart and it turned out pretty close! I tried to attach a screenshot so you could see the final challenge solution I came up with as it looks visually. It's probably very crude but it works. Here's my code: import SwiftUI struct ContentView: View { var body: some View { ZStack { Image("avacadotoast") .resizable() .edgesIgnoringSafeArea(.all) VStack { HStack { VStack { Text("Hardcore") .font(.title) .fontWeight(.medium) .foregroundColor(Color.white) Text("Avo Toast") .font(.title) .fontWeight(.medium) .foregroundColor(Color.white) } .position(x: 75, y: 50) Image("checkmarkheart") //.padding() .position(x: 150, y: 35) } Spacer(minLength: 300) Text("Energize with this healthy and hearty breakfast") .fontWeight(.medium) .foregroundColor(Color.gray) } } } }
"Hello, great going.. assets are should be changable anyway right.. you can also checkout our latest free course and course contents over on learn.codewithchris.com - Francis"
For the uikit example you could’ve used just ‘.center’ with no constraints and that would have centered it without the need of all those constraints if I’m not mistaken, but you made the point really good, uikit is a pain lol. Great video!
very good lecture, thanks for such detailed and insightful explaination. Only 1 thing need to discuss, that in example of binding in slot app and using it on symbols, there even if you make it simple property (w/o binding or even @State) it works bcz withing CardView we are not changing anything in this property.
In response to your request for the times I can spend learning XCode... Due to severe lower back pain, mornings are best for me, but I cannot sit at computer any longer then 30 minutes before my pain level reaches an intolerable level. First, I watch tutorials all the way through, reclining on a recliner chair, often with ice in my lower back, along with learning difficulties, this doesn't leave me much time, so for a normal person who can follow the lessons all the way through, I have to do it in small chunks... The last tutorial took me 18 days to follow through, and starting over a new project at least 5 times, when I often make such large mistakes, I cannot recover from doing stupid things with Constraints (which are hard to recover from), also, in the View properties my xcode setting for Background View properties is defaulted to "aspect fill" instead of "scale to Fill" so I have to always remember to stop your video to check each and every property you have yours set for, because if I don't, I get in serious trouble and flood the forum with Frivolous postings that are boring for the other students. I might make a recommendation that when showing the propertied you remind your viewers to pause the video and take careful note on the Property settings, because in MY copy, that background-:> View->Content Mode was NOT set right, and I had NO IDEA it was wrong. So, I have to stop at 2 pm and go into healing mode with my physical therapy stuff, and it ends my programming day. So I have a total programming time from about 10:30 am to about 1 pm, but in reality, I have just an hour I can spend following your lessons.... which falls within that time slot. Almost Always, I'll corrupt a project to the point of non recovery... as recovering from mistakes are virtually impossible for me to accomplish, I just don't know that much, but I would like to make a request... can you make up some lessons on how to recover from mistakes.. in your first lesson for instance, you can delete the Constraints, but do I also have to delete the views as well? you did not mention that in your last video. I tried not doing that, but I really loused things up.... I hope others gained from this long comment....
Commenting on your pace, you are going much too fast for me, but I just slow the video down in sections, but still manage to miss a few steps. But I can deal with that, and it's another reason why I'm so slow in following your videos.. I'm 77 yrs old, USAF Veteran, and retired programmer, and very slow to catch on... That old saying "You can't teach on old horse new tricks" has a little truth in it.
Hello John. Thank you for your comment. I'm really sorry to hear everything that is happening to you. Programming and learning programming is really something that will take you more time and effort I have to say. Small sittings of 30 minutes are indeed really short and I can't imagine trying to focus on a tutorial and programming exercice while having body pains. We did create the 29 Days tutorial series to help people go through the lessons one day at the time and have a good pace of learning. Now it if takes longer than 29 Days, it is completely normal. Speed is not the goal, especially when learning. Regarding all the settings and properties. Yes, a lot of them have default values and they aren't always the one you want or need. In programming, you will have to spend the time to work you way over and over all those properties to set them up properly for them to behave the way you need. It is time consuming, but once it is done. Now you said you posted a comment in our Forum and so I'm sure you got more help there than we can provide here as we are limited on CZcams. I have to say that I do not have any magic answer or solution aside form taking it slow and at your own pace! Now if your body doesn't allow it, maybe programming is not the right path for you, or not anymore. So give yourself another couple of weeks or months and see if you are able to make progress or not. Regarding the pacing, we have had people saying we are too slow too but in general we are pretty good. I do have to say that I saw a lot of tutorials aside from CodeWithChris and other tutorials do fly through the material way faster than we do here. Other even start with the idea that you have a solid foundation in programming too. So, I always recommend to watch (1) the full video without coding or doing anything else, (2) watch the video again, pause it to do the exercices, and (3) do the exercices while using the videos as a last help! You can also take it slower. Just focus on ONE element per day. One day, just play around with UILabels. Make them big small, change the text, font, color, background.... etc. One day at the time. See if you can stick to that and learn. I hope we were able to help you as much as possible. Don't stress out and take care of yourself! @AdrienVillez
@@CodeWithChris Also, i got this email about pay courses you offer. How about giving us veterans a discount for our efforts in defending our country. Veterans should be given more attention and perks. PLEASE consider this, I'm sure other veterans are going to appreciate your efforts to support them.
Here are all of the resources: czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
Thanks! Here are our design videos: czcams.com/video/R5KoTZY0esk/video.html czcams.com/video/c9URDK3KITM/video.html czcams.com/video/cU6T_0j2Pp4/video.html czcams.com/video/WhlNnf1711M/video.html czcams.com/video/KWsOR5aplXI/video.html - Kat
SwiftUI looks to make coding a lot fun than it currently is, this was a good introduction. Although, I still don't understand why, after adding parameters to a method, that they don't automatically get introduced wherever it was called, especially as the error always suggests this - it's just an unnecessary step.
"Hello, dont worry SwiftUI is a relatively new language that apple has introduced and will surely go through a lot of improvements as time goes by :) - Francis"
@@CodeWithChris I was just going to mention that, and please, in your next video, please remind your viewers about this blatant "gotcha" it took about 8 days from me.
If I want to learn something I usually build a playlist and listen to it while I sleep, then when I’m awake I don’t feel like it’s new cause my brain has already allocated what it was hearing while sleeping. Also, when I do this, when learning while awake, I can speed up the video about 2x’s and still keep up on what the person is trying to teach.
Sorry about that! Here are all the resources: czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
We have a ton, you just have to search them here on CZcams. czcams.com/video/cU6T_0j2Pp4/video.html czcams.com/video/R5KoTZY0esk/video.html czcams.com/video/WhlNnf1711M/video.html czcams.com/video/c9URDK3KITM/video.html czcams.com/video/LE9EDFEKnwE/video.html - Kat
Hello, you can simply try adding event listeners to it and just modify the UIButton image or background color. if you are interested we also have a quiz app database module on our codewithchris+ program - Francis
Hey Chris really Helpful videos on SwiftUI, can you please explain in some videos how we can make adaptable size UI for different devices (i.e profile image for smaller/larger devices), And how we use multiplier constraints for views in swiftui.
Hello, the its already adaptable to the screen size though, especially if you provide the constraints for the UI element so it will just "auto layout" itself - Francis
It is right below the CodeWithChris name, there is already a small description and you can click the "Show More". EDIT: Ok, on mobile, it's a bit more hidden. You have to select the little triangle next to the video title. @AdrienVillez
I did not see what you did to "Build" mic.circle.fill.. Did you press a key? of so, what was it, did you press a button? If so where is it, is it in the App? I wasn't able to follow that part in the video, clarification is needed... THANX
Hello, "mic.circle.fill" is part of the built-in system icons on Apple / Xcode called SFSymbols developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/ - Francis
Playing it at 1/4th the speed, I was able to follow your mouse, it just moved, but to no specific point, so am I to assume that once you entered it into the Code window, that this applies automatically? Is this APP somehow "hooked up" to your code window?
Hello, a simple google search should give you a link to apple's official documenation about the "human interface guidelines", found here developer.apple.com/design/human-interface-guidelines/ - Francis
Great tutorial Chris, understanding much of it, so explanations are clear but not omitting the detail. Laughing at your comment 2:36:42...the loan sharks LOL. Keep up the great work.
Here are all of the resources: czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
Hi Chris, thanks for all the good work you do, it's very encouraging. I am starting to learn iOS coming from Android and was wondering if there is something in SwiftUI similar to Android Pager and Tabs. I am not talking about TabView in iOS, but the paging of tabs, view pager, similar to how Android does it. How you considered making a SwiftUI tutorial about advanced navigation? Thanks a lot!!
At video position where you talk about red, green, blue, in your slider code you write: Slider(value: $red, in: 0...255 - etc), what does the $ mean? Is that part of Swift language, if so, what does it mean?
Hello, maybe this article can help insights.dice.com/2019/06/12/xcode-swiftui-dollar-sign-prefix/#:~:text=A%20'%24'%20prefix%20is%20a,bread%20types%20it%20can%20access.&text=(And%20if%20you%20said%20%E2%80%9Cbrioche,server%20would%20let%20you%20know. - Francis
i wrote a code for time conversion that works in the playground, but as soon as i put it into content view it kinda all falls apart. i’m coming back here to review the basics. any tips for converting a project from the playground to swoftUI?
it works when it’s all above content view, i think i need to put it inside content view to make the time conversion happen live instead of just on launch, but inside content view i get a lot more errors and problems doing the same things than i do outside
Dear team members, I wonder if there would be a way to use a nested Foreach loop to create the grid of cards with random index without having to use the numbers array? I’m tempted to try it but am still a beginner and would probably mess it up. What are your thoughts?
Hello, yes it is possible by putting an if inside the 2nd test to check availability, its not very efficient if you look at the number of times it makes a loop though but it should do the job - Francis
Hello, just simply use the charger cord of your iphone and "trust" the computer so it will be detected, xcode will then automatically detect it and you can use it as a simulator - Francis
hey Chris, Love your video! I hesitated to ask this cause no one in the comment seems to be asking. But I just want to know where can I get the asset you mentioned on 23:00 ? (the donuts , lemon and apple images) They are not in the description. Thanks!
Sorry about that! Here are all of the resources: czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
The SwiftUI slots app still works the same when the "symbol" property inside CardView.swift isn't binding. Why is that, and why did we choose to make it binding?
This is an amazing tutorial and I am super grateful for you and your teaching style. I'm at about 2:00 in and am very confused as a beginner why you use variables so similar just making plural- is this supposed to make it more clear? It just makes me more confused. Like "symbol" and "symbols" or "background" and "backgrounds". Can you help me understand what I am missing. Thank you!
Hello, i suggest you go over to the basics of swift first, dont worry they use the same library and concepts so you will better understand programing in swift here is the link to the full beginners playlist czcams.com/play/PLMRqhzcHGw1b89DXHOVA77ozWXWmuBkWX.html - Francis
Hello, check out our article on sorted, map, flatmap, filter, and reduce. for intermidiate developers sometimes its easier to use map instead bit.ly/2xByWS4 - Francis
Hey Chris, Thanks for the awesome videos! I know this is a long shot but could you possibly show how to keep buttons highlighted. (i.e. a user can select multiple options (buttons) and when selected the buttons become a darker color (light gray to gray) or vice versa. I have looked everywhere, google, CZcams, forums, etc. and have had no luck. Thanks Paul Frey
Sorry about that! Here are all of the resources: czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
Hello, kindly post your question in our CodeCrew forum so that our technical support staff there can assist you. Go here: codecrew.codewithchris.com. Thanks for learning with us! -Arthur
Download Xcode on the macOS App Store to get started with those videos. Also, all codes can be found on our GitHub, but I would recommend following the lessons here first! (github.com/codewithchris) @AdrienVillez
Hello, Thank you so much for taking the time to post your inquiry here! Unfortunately, we can't answer it for you in the comment section but you can try joining and posting in our community: cwc.to/codecrew --Joash
Hi, I've been watching your videos for some time and I have been trying to follow along but I am having some trouble finding the resources for this video. I know that in a few of the other videos the links were listed in the description.
Sorry about that! Here are the resources: czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
Hello, kindly post your question on our CodeCrew forum so that our technical support staff can assist you. Go here: codecrew.codewithchris.com. :) -Arthur
Sorry about that! Here you go czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=9coxd79c9ZhA__NCwARZX9aRnEx8MTU4NDMyNjAwMEAxNTg0MjM5NjAw&v=rmTQcILJRcY&event=video_description - Kat
Hello, for the future SwiftUI may be the way to go because it will also run no problem in phones as long as it is updated to iOS 13, if you want to support older os like 11 or 12 though then you will need to use storyboard for it - Francis
Hey CodeWithChris, love the video so far, I was wondering how you got that preview ViewController on the right side of your screen? I can't figure out how to do that.
Hello, this only works in SwiftUI, do you have xcode 11 installed? and did you make you app in SwiftUI and not storyboard?, the preview should be there when making apps in SwiftUI - Francis
hi, i am creating an application and i would like to change the back button between one page and another from blue to white as my background is blue ... how can i do? please help me I can't find a solution ... thanks a lot in advance
Hey Chris! If you’re still responding to comments on this video I have a question. How would I make a button that when pressed puts a marker on a map of the current location of the user?
Hello, it seems that it wasn't able to "detect" what .pink is, try tying the full UIColor for it or check your code you might have missed something - Francis
When you export these symbols from this app, you said "save it somewhere". Do I save it in the Assets? You didn't specify where you save it to, and like I might have mentioned before, you stated you had to download this Symbols app, then I say you enter the name of this symbol into the code window, how does the code window know about this mic.circle.fill? And I noticed a "Build Successful" did you use the XCode Build menu, or does the code window somehow magically know you wanted to build the minute you entered the CR after changing the source code. THIS WAS NOT MADE CLEAR, can you clarify this please.
Hello, you can download the SF Symbols app so you can easily search the available SF Symbols provided by apple. however, there is no need to import anything because it is already part of your app (if it is ios 13 and above) - Francis
Love the tutorial! I have a question though... What are the pros and cons of using the map function versus a for-loop? I am used to C and C++ programming so for-looping the backgrounds and the randomization of the values seem like a cheaper way of doing things comparatively. Or am I wrong in my assumption?
52:15 please tell me where I can find the solution (Ava Cado challenge) - it's not included in the dropbox folder. Very nice video - thank you and best regards!
Sorry to bug you but where are the graphics for the Slot Demo? All I can find is one listed below that gives you a folder named Assets and it has the apple, donut and lemon png files.
Sorry about that! Here are all of the resources: czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
At 2:08:00 Why do you use an array instead of using a single state @State private var bicolor = Color.white so all you would have to do for a win is bgColor = Color.green and for a loss bicolor = Color.white. Edit: The problem with my proposed solution is that for the later challenge (which I hadn't seen yet) the whole thing will light up green instead of just the row.
"Hello, yes this would probably be fine if you only want to make everything turn green or white, for more specific rows its better go to with the old fashion ""flags"" - Francis"
To fix this, choose Storyboard as the User Interface instead of SwiftUI and it will show the view controller.swift. Watch this czcams.com/video/ea9fCSXGhSU/video.html - Kat
Here are all of the resources: czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
CodeWithChris is a wonderful and easy way to learn SwiftUI. I'm a retired (70 years old) engineer, programer, product manager and substitute teacher. Chris is one of the best teacher I've seen in a long time. Thank you Chris.
Wow, you're awesome! Welcome to the family! :-) -Arthur
This is a great video, one of the few iOS devs on CZcams who truly know what they're doing and can explain it with precision. Thanks for uploading
Glad you enjoyed it! Thanks for learning with Chris!
- Kat
I just finished this series of tutorials and found your teaching style to be an exact match for how I learn. I especially liked how you showed the obvious/intuitive way to approach something, and then re-did it to be slightly more elegant and sustainable. That was invaluable. Thank you!
Thank you for the feedback! We really appreciate this.
- Kat
Great video and excellent communication skills, tone of voice, etc...
Thanks for the compliments! 🙌🥳
- Kat
Thanks a lot, Chris. This is my first intro to SwiftUI, and I particularly like that you show the "long code", and the abbreviate it. Besides that I find your pace and friendly voice very nice.
Thank you for your kind words! 🙌
- Kat
Thanks @CodeWithChris for this tutorial. Sometimes it is a lot more practical to watch a lesson instead of having to adventure off by yourself after 8 hours of daily work.
I agree, you're welcome!
- Kat
One of the best / most useful YT-videos I have ever watched :) Thank you for all that information and inspiration
Always happy to help! Thank you for the kind words!
@AdrienVillez
i signed up for your 7DAAP and its really nice. The way you teach ,its so easy to understand.
Awesome, thank you!
- Kat
Chris your voice and way of explanation is so calm .
Thank you for your kind words!
- Kat
Hey Chris just want to say I really appreciate this video. It's helping me acclimate to the new framework and it's great to have a well-constructed tutorial such as this with clear commentary/explanations.
Thank you for watching this! We're so happy to hear that you found this tutorial helpful!
- Kat
I made this example.
Thanks Chris !
Very very helpful video !
Happy to know this. All the best! -Arthur
You are amazing man! Lovely tutorial all the time from you.
Thank you so much for your kind words!
- Kat
Chris, like you I am a morning person and I do my best work before lunch.
Love that! Have fun learning!
- Kat
CodeWithChris thanks Chris, just picked up my Mac after a couple of years not doing anything with it. Enjoying the course so far.
Just wanted to drop a quick ‘thank you’. Fantastic work, learned a lot!
Cheers, Max! We appreciate your support! -Arthur
Super great video makes excited to learn more and get started! Love the "stay organized" motto !!
Hey Simon! Thanks for the kind words! Yup, it's always fun to learn more!! Thanks for watching and learning with us! :) - Pat
Is this real that all of these lectures for free??? Unbelievable god🤣 Thanks for offering❤️
Our pleasure!
- Kat
I love your videos Chris. You're easily one of the best Xcode teachers here on CZcams, if not the best. I have a little improvement suggestion tho .. can you next time show us the solutions for the exercises you give us in the videos ? That would help a lot, other than that please keep your great work as it is ... I love your tutorials man 👍🏼
Thanks for the feedback! We have a solutions video for the Slots app. :) czcams.com/video/LME6cZ-2Vuc/video.html
- Kat
CodeWithChris great, I’ll watch it ! Thank you very much !
Thank for this video man. Full time Android dev here wanting to switch to ios
Hope you have fun in iOS app dev! :)
- Kat
Thanks Chris you will get good deeds
Haha, thank you so much! :-) -Arthur
Great tutorial! This is my first delve into coding and helped a lot. I managed to include horizontal columns and separate the credits into credits and winnings. My next challenge is to add a cash out button that adds the winnings back into the credits just to see if I can do it
Great work! Feel free to update us. :) -Arthur
2:00 AM now and going to start.
Have fun!
- Kat
I couldn't find the assets folder down in the description so I made my own. I created the Checkmark Heart and it turned out pretty close! I tried to attach a screenshot so you could see the final challenge solution I came up with as it looks visually.
It's probably very crude but it works.
Here's my code:
import SwiftUI
struct ContentView: View {
var body: some View {
ZStack {
Image("avacadotoast")
.resizable()
.edgesIgnoringSafeArea(.all)
VStack {
HStack {
VStack {
Text("Hardcore")
.font(.title)
.fontWeight(.medium)
.foregroundColor(Color.white)
Text("Avo Toast")
.font(.title)
.fontWeight(.medium)
.foregroundColor(Color.white)
}
.position(x: 75, y: 50)
Image("checkmarkheart")
//.padding()
.position(x: 150, y: 35)
}
Spacer(minLength: 300)
Text("Energize with this healthy and hearty breakfast")
.fontWeight(.medium)
.foregroundColor(Color.gray)
}
}
}
}
"Hello, great going.. assets are should be changable anyway right.. you can also checkout our latest free course and course contents over on learn.codewithchris.com
- Francis"
Exactly what i needed. Thanks Chris!
Awesome! Thanks for watching this!
- Kat
This was an interesting project, thank you 😃
Did you complete it and remix it at your own sauce?
Post your version in our CodeCrew forum: codecrew.codewithchris.com/
@AdrienVillez
I’m a full-time dad, so I have to learn whenever my son is sleeping 😂
I salute you for finding some time to learn while being a parent. 👏
- Kat
You are awesome. These lessons are so easy to understand. Thank you for doing this. I’m learning a lot
Same 😅
1:00 am kids are asleep, wife is asleep, me learning swift ui
@@joshuadiaz1954 Unbelievable
For the uikit example you could’ve used just ‘.center’ with no constraints and that would have centered it without the need of all those constraints if I’m not mistaken, but you made the point really good, uikit is a pain lol. Great video!
Thanks for mentioning that!
- Kat
Great video and I love the challenges, really helps the learning process.
Can I ask which of your videos would be best to view next?
Thanks! We have a full playlist of SwiftUI tutorials here czcams.com/play/PLMRqhzcHGw1Z-lZaaun3A3mV9PbEfHANI.html
- Kat
very good lecture, thanks for such detailed and insightful explaination. Only 1 thing need to discuss, that in example of binding in slot app and using it on symbols, there even if you make it simple property (w/o binding or even @State) it works bcz withing CardView we are not changing anything in this property.
In response to your request for the times I can spend learning XCode... Due to severe lower back pain, mornings are best for me, but I cannot sit at computer any longer then 30 minutes before my pain level reaches an intolerable level. First, I watch tutorials all the way through, reclining on a recliner chair, often with ice in my lower back, along with learning difficulties, this doesn't leave me much time, so for a normal person who can follow the lessons all the way through, I have to do it in small chunks... The last tutorial took me 18 days to follow through, and starting over a new project at least 5 times, when I often make such large mistakes, I cannot recover from doing stupid things with Constraints (which are hard to recover from), also, in the View properties my xcode setting for Background View properties is defaulted to "aspect fill" instead of "scale to Fill" so I have to always remember to stop your video to check each and every property you have yours set for, because if I don't, I get in serious trouble and flood the forum with Frivolous postings that are boring for the other students. I might make a recommendation that when showing the propertied you remind your viewers to pause the video and take careful note on the Property settings, because in MY copy, that background-:> View->Content Mode was NOT set right, and I had NO IDEA it was wrong. So, I have to stop at 2 pm and go into healing mode with my physical therapy stuff, and it ends my programming day. So I have a total programming time from about 10:30 am to about 1 pm, but in reality, I have just an hour I can spend following your lessons.... which falls within that time slot. Almost Always, I'll corrupt a project to the point of non recovery... as recovering from mistakes are virtually impossible for me to accomplish, I just don't know that much, but I would like to make a request... can you make up some lessons on how to recover from mistakes.. in your first lesson for instance, you can delete the Constraints, but do I also have to delete the views as well? you did not mention that in your last video. I tried not doing that, but I really loused things up.... I hope others gained from this long comment....
Commenting on your pace, you are going much too fast for me, but I just slow the video down in sections, but still manage to miss a few steps. But I can deal with that, and it's another reason why I'm so slow in following your videos.. I'm 77 yrs old, USAF Veteran, and retired programmer, and very slow to catch on... That old saying "You can't teach on old horse new tricks" has a little truth in it.
Hello John. Thank you for your comment. I'm really sorry to hear everything that is happening to you.
Programming and learning programming is really something that will take you more time and effort I have to say. Small sittings of 30 minutes are indeed really short and I can't imagine trying to focus on a tutorial and programming exercice while having body pains.
We did create the 29 Days tutorial series to help people go through the lessons one day at the time and have a good pace of learning. Now it if takes longer than 29 Days, it is completely normal. Speed is not the goal, especially when learning.
Regarding all the settings and properties. Yes, a lot of them have default values and they aren't always the one you want or need. In programming, you will have to spend the time to work you way over and over all those properties to set them up properly for them to behave the way you need. It is time consuming, but once it is done.
Now you said you posted a comment in our Forum and so I'm sure you got more help there than we can provide here as we are limited on CZcams.
I have to say that I do not have any magic answer or solution aside form taking it slow and at your own pace! Now if your body doesn't allow it, maybe programming is not the right path for you, or not anymore. So give yourself another couple of weeks or months and see if you are able to make progress or not.
Regarding the pacing, we have had people saying we are too slow too but in general we are pretty good. I do have to say that I saw a lot of tutorials aside from CodeWithChris and other tutorials do fly through the material way faster than we do here. Other even start with the idea that you have a solid foundation in programming too.
So, I always recommend to watch (1) the full video without coding or doing anything else, (2) watch the video again, pause it to do the exercices, and (3) do the exercices while using the videos as a last help!
You can also take it slower. Just focus on ONE element per day. One day, just play around with UILabels. Make them big small, change the text, font, color, background.... etc.
One day at the time. See if you can stick to that and learn.
I hope we were able to help you as much as possible. Don't stress out and take care of yourself!
@AdrienVillez
@@CodeWithChris Also, i got this email about pay courses you offer. How about giving us veterans a discount for our efforts in defending our country. Veterans should be given more attention and perks. PLEASE consider this, I'm sure other veterans are going to appreciate your efforts to support them.
Amazing, amazing, amazing!!! You are helping to me a lot. Thank you mate. I appreciate you.
We appreciate you more, Jonathan! :-) So glad to have you around. :-) -Arthur
There's no link to the assets you're using when you say look in the description :/
Sorry about that! Here are all of the resources:
bit.ly/2AyuoOs
bit.ly/31K9F5u
bit.ly/3gtlSzB
bit.ly/38qPdrl
- Kat
truly amazing introduction! 🙏 🙏
Thank you! 🙌
- Kat
ThankYou !!! Greetings from Ecuador !!
You're welcome!
- Kat
50 mn in. This si very a great quality content!!!!!!!!!
Thank you alexandro!
-Kat
Looks like the resources link is missing from the description now. Thanks for all the videos!
Here are all of the resources:
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description
- Kat
Any time is good time for me. But solving problems happen best for me in the morning after sleeping. No matter for how long.
Great to know that you were able to find that time when you can work best! :-) -Arthur
I am loving all your videos so far! Do you have any videos or recommendations on graphic design for iOS?
Thanks! Here are our design videos:
czcams.com/video/R5KoTZY0esk/video.html
czcams.com/video/c9URDK3KITM/video.html
czcams.com/video/cU6T_0j2Pp4/video.html
czcams.com/video/WhlNnf1711M/video.html
czcams.com/video/KWsOR5aplXI/video.html
- Kat
SwiftUI looks to make coding a lot fun than it currently is, this was a good introduction.
Although, I still don't understand why, after adding parameters to a method, that they don't automatically get introduced wherever it was called, especially as the error always suggests this - it's just an unnecessary step.
"Hello, dont worry SwiftUI is a relatively new language that apple has introduced and will surely go through a lot of improvements as time goes by :)
- Francis"
In SwiftUI, View isn't a class but a protocol. So ContentView conforms to View protocol
Hello, thank you for clearing that up, yes according to documentation it is a protocol
- Francis
When applying modifiers some of my images got stretched so they look distorted. Is there a way around this?
Hello, you can change the option of the content mode, maybe change it to Center, or Aspect Fit
- Francis
@@CodeWithChris I was just going to mention that, and please, in your next video, please remind your viewers about this blatant "gotcha" it took about 8 days from me.
This is great. Thank you so much!
You're very welcome!
- Kat
If I want to learn something I usually build a playlist and listen to it while I sleep, then when I’m awake I don’t feel like it’s new cause my brain has already allocated what it was hearing while sleeping. Also, when I do this, when learning while awake, I can speed up the video about 2x’s and still keep up on what the person is trying to teach.
Awesome! Don't forget to also practice everything you're learning in the videos. :)
- Kat
beginners. Thank you so much! x
You're welcome! :) - Pat
from where we can get the images of apple donut and lemon? there is no link in description tho appreciate your work and thanks for the help
Sorry about that! Here are all the resources:
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description
- Kat
Great video again 🙌🏼🙌🏼 What program are the graphics made in? Would love to see a small graphics for app tutorial maybe? 😁
We have a ton, you just have to search them here on CZcams.
czcams.com/video/cU6T_0j2Pp4/video.html
czcams.com/video/R5KoTZY0esk/video.html
czcams.com/video/WhlNnf1711M/video.html
czcams.com/video/c9URDK3KITM/video.html
czcams.com/video/LE9EDFEKnwE/video.html
- Kat
Hi Chris! I am building a quiz app, and need the button that is pressed to change colour (without the others changing colour)... please help! thanks
Hello, you can simply try adding event listeners to it and just modify the UIButton image or background color.
if you are interested we also have a quiz app database module on our codewithchris+ program
- Francis
Hey Chris really Helpful videos on SwiftUI, can you please explain in some videos how we can make adaptable size UI for different devices (i.e profile image for smaller/larger devices), And how we use multiplier constraints for views in swiftui.
Hello, the its already adaptable to the screen size though, especially if you provide the constraints for the UI element so it will just "auto layout" itself
- Francis
Everything works, especially free, use until it is too late!
Thanks for your comment! :) -Arthur
Well I new to your video and it’s been up for almost a year. I learn anytime that I can make free mostly late at night or the weekend.
Yes to flexible learning hours! Thanks for learning with us!
I will pray for you good thing Chris ❤
Wow thank you so much! :) - Pat
How can someone dislike this? That’s horrendous! Thanks Chris for such a good video!
Thank you! 🙌
- Kat
SwiftUI Calculator App!!
Nice suggestion! Add your tutorial requests here: cwc.to/request
- Kat
Hi Chris that was a great video! just one thing can you send me the description to me plz? i can't find it.
It is right below the CodeWithChris name, there is already a small description and you can click the "Show More".
EDIT: Ok, on mobile, it's a bit more hidden. You have to select the little triangle next to the video title.
@AdrienVillez
I did not see what you did to "Build" mic.circle.fill.. Did you press a key? of so, what was it, did you press a button? If so where is it, is it in the App? I wasn't able to follow that part in the video, clarification is needed... THANX
Hello, "mic.circle.fill" is part of the built-in system icons on Apple / Xcode called SFSymbols
developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/
- Francis
Where do you get the "Human Interface" guidelines? Is this something you pull in with a browser, if so, what is the link?
I just saw the part where you state this is a Mac OS App, would I look for it in the App store? Is there a cost involved?
Playing it at 1/4th the speed, I was able to follow your mouse, it just moved, but to no specific point, so am I to assume that once you entered it into the Code window, that this applies automatically? Is this APP somehow "hooked up" to your code window?
Hello, a simple google search should give you a link to apple's official documenation about the "human interface guidelines", found here developer.apple.com/design/human-interface-guidelines/
- Francis
Great tutorial Chris, understanding much of it, so explanations are clear but not omitting the detail. Laughing at your comment 2:36:42...the loan sharks LOL. Keep up the great work.
Haha, thanks for watching! Happy that you're learning with us! -Arthur
is this using Xcode version 11.4 (11E146)? the menus & screens do not align with my screens
Hello, yes its using the latest version of xcode, shouldn't be a problem though as everything should work the same
- Francis
Does any one know where the challenge folder is? I swear its not listed under the description or am i just clueless about this?
Here are all of the resources:
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description
- Kat
Hi Chris, thanks for all the good work you do, it's very encouraging. I am starting to learn iOS coming from Android and was wondering if there is something in SwiftUI similar to Android Pager and Tabs. I am not talking about TabView in iOS, but the paging of tabs, view pager, similar to how Android does it. How you considered making a SwiftUI tutorial about advanced navigation?
Thanks a lot!!
Hello, not really familiar but maybe try to look into navigationlinks if it is similar?
- Francis
At video position where you talk about red, green, blue, in your slider code you write: Slider(value: $red, in: 0...255 - etc), what does the $ mean? Is that part of Swift language, if so, what does it mean?
Hello, maybe this article can help insights.dice.com/2019/06/12/xcode-swiftui-dollar-sign-prefix/#:~:text=A%20'%24'%20prefix%20is%20a,bread%20types%20it%20can%20access.&text=(And%20if%20you%20said%20%E2%80%9Cbrioche,server%20would%20let%20you%20know.
- Francis
i wrote a code for time conversion that works in the playground, but as soon as i put it into content view it kinda all falls apart. i’m coming back here to review the basics. any tips for converting a project from the playground to swoftUI?
it works when it’s all above content view, i think i need to put it inside content view to make the time conversion happen live instead of just on launch, but inside content view i get a lot more errors and problems doing the same things than i do outside
Hello, how about putting in inside a function, then just update the value by putting it in a @State
- Francis
Thanks a lot !
You are welcome!
- Kat
Dear team members, I wonder if there would be a way to use a nested Foreach loop to create the grid of cards with random index without having to use the numbers array? I’m tempted to try it but am still a beginner and would probably mess it up. What are your thoughts?
Hello, yes it is possible by putting an if inside the 2nd test to check availability, its not very efficient if you look at the number of times it makes a loop though but it should do the job
- Francis
How can you save and load the credits when you close the app?
Hello, there are multiple ways, easiest to set up and use would probably be UserDefaults
- Francis
how do I plug in my iPhone and view my Xcode project on it?
Hello, just simply use the charger cord of your iphone and "trust" the computer so it will be detected, xcode will then automatically detect it and you can use it as a simulator
- Francis
hey Chris, Love your video! I hesitated to ask this cause no one in the comment seems to be asking. But I just want to know where can I get the asset you mentioned on 23:00 ? (the donuts , lemon and apple images) They are not in the description. Thanks!
Sorry about that! Here are all of the resources:
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description
- Kat
The SwiftUI slots app still works the same when the "symbol" property inside CardView.swift isn't binding. Why is that, and why did we choose to make it binding?
Hello, to read more about binding check out the documentation here developer.apple.com/documentation/swiftui/binding
- Francis
man we like a tutorials to learn ios development for beginner on the last version of xcode , pleas .
Yay, stay tuned! More tutorials to come! :-) -Arthur
This is an amazing tutorial and I am super grateful for you and your teaching style. I'm at about 2:00 in and am very confused as a beginner why you use variables so similar just making plural- is this supposed to make it more clear? It just makes me more confused. Like "symbol" and "symbols" or "background" and "backgrounds". Can you help me understand what I am missing. Thank you!
Hello, i suggest you go over to the basics of swift first, dont worry they use the same library and concepts so you will better understand programing in swift
here is the link to the full beginners playlist czcams.com/play/PLMRqhzcHGw1b89DXHOVA77ozWXWmuBkWX.html
- Francis
I'm confused on the var body: some View syntax. Is body a function that you have to override Or is it a variable that you have to override.
Hello, technically its a View that you have to override, think of it as an extension of the View
- Francis
Last section with 9 fruits was crazy🤪. I also want to ask, why you don't use for loop instead of map? Thanks
Hello, check out our article on sorted, map, flatmap, filter, and reduce. for intermidiate developers sometimes its easier to use map instead bit.ly/2xByWS4
- Francis
Hey Chris,
Thanks for the awesome videos! I know this is a long shot but could you possibly show how to keep buttons highlighted. (i.e. a user can select multiple options (buttons) and when selected the buttons become a darker color (light gray to gray) or vice versa. I have looked everywhere, google, CZcams, forums, etc. and have had no luck.
Thanks
Paul Frey
Hello, i think you should go about it on a different way instead of buttons. i suggest maybe checking this out stackoverflow.com/a/29117898
- Francis
Hey. I cant find the resources specifically for the challenges including the avocado toast image and the pink building. Can anyone help me out?
Sorry about that! Here are all of the resources:
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description
- Kat
@@CodeWithChris thanks
Will swiftUI replace UIkit in future? Can I just learn swiftUI without get to know UIkit ?
Hello, kindly post your question in our CodeCrew forum so that our technical support staff there can assist you. Go here: codecrew.codewithchris.com. Thanks for learning with us! -Arthur
I have a iMac way can I download swiftui app. pls post link
Download Xcode on the macOS App Store to get started with those videos. Also, all codes can be found on our GitHub, but I would recommend following the lessons here first! (github.com/codewithchris)
@AdrienVillez
How can i add multiplyer to symbols itself, for example 3 apples x2, three stars x 5?
Hello, Thank you so much for taking the time to post your inquiry here!
Unfortunately, we can't answer it for you in the comment section but you can try joining and posting in our community: cwc.to/codecrew
--Joash
Chris when I updated my Xcode I lost all my projects
Hello, its probably still in your harddrive as Xcode doesn't save it on its own folder, try looking for it
- Francis
this is really great
Thank you! 🙌
- Kat
Hi, I've been watching your videos for some time and I have been trying to follow along but I am having some trouble finding the resources for this video. I know that in a few of the other videos the links were listed in the description.
Sorry about that! Here are the resources:
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description
- Kat
@@CodeWithChris Thank you very much!
Hai Chris…. Your videos are really good. Can you tell me that, In what situation we use classes and structures? Can you please answer….
Hello, kindly post your question on our CodeCrew forum so that our technical support staff can assist you. Go here: codecrew.codewithchris.com. :) -Arthur
I do not seem to find the link to the assets (png files)... somebody can assist?
I can't find them either. Someone please help!
Sorry about that! Here you go czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=9coxd79c9ZhA__NCwARZX9aRnEx8MTU4NDMyNjAwMEAxNTg0MjM5NjAw&v=rmTQcILJRcY&event=video_description
- Kat
@@CodeWithChris Thanks!
is this worth the watch with the new xcode 12 changes? New to swift UI
Yes, there are still some similarities. Have fun learning! -Arthur
Do we need to support two code sets now?
Hello, for the future SwiftUI may be the way to go because it will also run no problem in phones as long as it is updated to iOS 13, if you want to support older os like 11 or 12 though then you will need to use storyboard for it
- Francis
Hey CodeWithChris, love the video so far, I was wondering how you got that preview ViewController on the right side of your screen? I can't figure out how to do that.
Hello, this only works in SwiftUI, do you have xcode 11 installed? and did you make you app in SwiftUI and not storyboard?, the preview should be there when making apps in SwiftUI
- Francis
You repeatedly mention the image assets to use, but I can't find them? Can you help me out?
Sorry about that! Here are all of the resources:
bit.ly/2AyuoOs
bit.ly/31K9F5u
bit.ly/3gtlSzB
bit.ly/38qPdrl
- Kat
hi, i am creating an application and i would like to change the back button between one page and another from blue to white as my background is blue ... how can i do? please help me I can't find a solution ... thanks a lot in advance
Hello, you might need to change the background by setting the background color of the new screen as well
- Francis
@@CodeWithChris
Ah ok I'll see if I can do it in the project, thanks for the answer ;)
i am not sure how to use swiftUI in xcode 12
Hello. you just need to create a new project and make sure that it is SwiftUI instad of Storyboard
- Francis
Hey Chris! If you’re still responding to comments on this video I have a question. How would I make a button that when pressed puts a marker on a map of the current location of the user?
Hello, on our CWC+ iOS Bento we have this exact tutorial, you can however try it out yourself, just search for MKPin/ MKAnnotation
- Francis
On 1.29.22 When you declare .background(.pink) I have an error: "Cannot infer contextual base in reference to member 'pink' " What the problem?
Hello, it seems that it wasn't able to "detect" what .pink is, try tying the full UIColor for it
or check your code you might have missed something
- Francis
can swiftui adapt screen size automatically or we need to take care via code?
Hello, yes it should automatically adapt to the screensize but it may also depend if you set some exact sizes for your dimensions
- Francis
@@CodeWithChris Thanks for reply
When you export these symbols from this app, you said "save it somewhere". Do I save it in the Assets? You didn't specify where you save it to, and like I might have mentioned before, you stated you had to download this Symbols app, then I say you enter the name of this symbol into the code window, how does the code window know about this mic.circle.fill? And I noticed a "Build Successful" did you use the XCode Build menu, or does the code window somehow magically know you wanted to build the minute you entered the CR after changing the source code. THIS WAS NOT MADE CLEAR, can you clarify this please.
Hello, you can download the SF Symbols app so you can easily search the available SF Symbols provided by apple. however, there is no need to import anything because it is already part of your app (if it is ios 13 and above)
- Francis
Love the tutorial!
I have a question though... What are the pros and cons of using the map function versus a for-loop? I am used to C and C++ programming so for-looping the backgrounds and the randomization of the values seem like a cheaper way of doing things comparatively. Or am I wrong in my assumption?
Hello, check out our article on loops codewithchris.com/swift-loops/
then read our article (to be published) article on map bit.ly/2xByWS4
- Francis
how do you make it so that when you have multiple softs in your soft roll; you arent interfereing with another soft like accidentally
Hey there. Do you mind sharing this to our CodeCrew forum so that our members can help you? You can visit this link: codecrew.codewithchris.com - Pat
I'm a morning brainer' too, it's easier to be focused in the morning.
High five! Thanks for watching! -Arthur
52:15 please tell me where I can find the solution (Ava Cado challenge) - it's not included in the dropbox folder. Very nice video - thank you and best regards!
thanks
Sorry to bug you but where are the graphics for the Slot Demo? All I can find is one listed below that gives you a folder named Assets and it has the apple, donut and lemon png files.
Sorry about that! Here are all of the resources:
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description
- Kat
At 2:08:00 Why do you use an array instead of using a single state @State private var bicolor = Color.white so all you would have to do for a win is bgColor = Color.green and for a loss bicolor = Color.white.
Edit: The problem with my proposed solution is that for the later challenge (which I hadn't seen yet) the whole thing will light up green instead of just the row.
"Hello, yes this would probably be fine if you only want to make everything turn green or white, for more specific rows its better go to with the old fashion ""flags""
- Francis"
Where is view controller.swift
To fix this, choose Storyboard as the User Interface instead of SwiftUI and it will show the view controller.swift. Watch this czcams.com/video/ea9fCSXGhSU/video.html
- Kat
Where are the apple, donut, and lemon images? I don't see them in the description
@Magali Thanks
Here are all of the resources:
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
czcams.com/users/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
czcams.com/users/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
czcams.com/users/redirect?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description
- Kat