QOTD ⚡ Do you have any demo app ideas to build with SwiftUI? Let me know! 👇 Kick start your own app with my free 7 Day App Action Plan ➡️ bit.ly/7dplan
Hey Chris, Thanks for helpful videos. You rock! My demo app idea is an audio player that uses AVAudioEngine buffering to schedule audio files for playback during various times of the day. Thx ❤️
Yes... have an initial VC with two choices.... Login or Sign Up. In that initial VC, enable a text field for an e-mail address if they choose Sign Up. Have Login and Sign Up segue to their own VC. ( For the purpose of teaching at least two ways to segue ). When segueing from the initial VC to the 2nd VC, pass the e-mail address from the 1st VC to the 2nd VC. Segues and passing data between VC. I see so many beginners get stuck with one or both of these then they get frustrated. Beginners also need to know how to add another Swift file, UIViewController class, and tie it to the 2nd VC they dragged and dropped onto the Storyboard. Maybe Swift UI has a better method... not sure. I have not seen any Swift UI tutorials covering two VC’s. This is a realistic, practical suggestion. I say that because I helped two members of the *Code with Chris FB Community* with these two issues in the last two days.
Hi Chris, Thanks for all the tutorials! I'd like to see a demo of a radio frequency scanner starting at the low end of the frequency range to a very high frequency range. This would help me with an app idea that I have and could I would be able to utilize it within my app.
LOL - I sat @ 17:40 for 20 minutes debugging where I went wrong in my code for it to consistently fail to build giving me an error that, according to Google was a question that could only be addressed by Apple compiling engineers. I did notice above this you specified Color. so I tried that out and voila! Then I clicked play and saw you address that not even a second later xD Helps dig into the code and understand more for myself though so it was a good experience. I'm also happy that I was able to find the issue :) Thanks as always CWC Team!
Thanks you for your videos, Chris. Applicable and useful as always. Video suggestions: save an image from a dynamic list to CoreData in SwiftUI, comparison of using CoreData and Realm in SwiftUI and comparison of FireBase and Cloudkit with SwiftUI . Thanks!
This is a good article that covers that: www.hackingwithswift.com/quick-start/swiftui/answering-the-big-question-should-you-learn-swiftui-uikit-or-both -Kat
A cool app to build (and my goal first app) is a simple score tracker for golf or disc golf. Features include: + track score of new games + allow multiple players + show past rounds + display user data and average scores + display course data and toughest holes
Hi Chris, where can I find the background image fo the slot app? Thank you and congratulations for your video lessons, I'm improving to develop apps thank to you! ;)
You're welcome! Here are all of the resources: ruclips.net/user/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY ruclips.net/user/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip ruclips.net/user/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 ruclips.net/user/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, question regarding betting logic when the user wins. Shouldn't it be "self.credits += (self.BetAmount * 9)" ? Bet amount will not be substracted otherwise because of the if/else statement, and that should always be the case. Do you agree? And are there any shorter ways to code this? Thanks for the great work! // Check winnings self.credits -= self.BetAmount if self.numbers[0] == self.numbers[1] && self.numbers[1] == self.numbers[2] // Won self.credits += (self.BetAmount * 10) } or solution 2: // Spin & Win if self.numbers[0] == self.numbers[1] && self.numbers[1] == self.numbers[2] { self.credits += (self.BetAmount * 9) } else { self.credits -= self.BetAmount }
Hello, the logic remains the same though he still gets "x10" of the amount he bet , in the original, the player will always have his bet deducted regarless of win or lose (meaning if he wins he will get x9 of his bet amount, cuz he still needs to pay for this current bet) on your version, he will only pay the bet amount if he loses, then if he wins he will get x9 of his bet amount
Great videos that are easy to follow and delivered at a good pace. Ideas for demo apps could be local tourism where you can get information on restaurants, things to do with location map etc
Hi, i have a general Question: In the Interface Builder where the iPhone is shown and i can drag and drop buttons etc. on it. I see in previus Videos from you that the Top Bar of the iPhone is shown. I mean the clock an the battery symbol. Now it is gone. How am I get this Top Bar shown again in XCode? (I use XCode 11.3.1 to be specific) By the way, great Videos which you make. I have learned so much. Greetings from Germany.
Hello, that should be in the safe area at the top, so when making your app and you want to show the topbar you need to set the constraints to only the safe area at the top - Francis
@@CodeWithChris Thanks for the Answer, but i mean in XCode (in the Interface Builder where I can drag Objects in). I see the Safe Area because for example the iPhone 11 has white spots above and under the blue area. But it confuses me that above the Safe Area ther is the Clock and Battery Symbol not shown. Also on the normal Displays like the iPhone 8. For example in this Video: ruclips.net/video/qC6DzF_ACpQ/видео.html at Minute 2:30 there is in the Interface Builder the Clock and Battery Symbol shown. And my Question is if it is possible to show that in XCode 11?
Chris it always amazes how you design apps. Beautiful. I just checked if Set(numbers).count = 1 {//Win . Because Set does not have duplicates. Waiting for the next part. As for app ideas - any app that deals with logining to google or firebase or to cloud anywhere and saving something there would be nice)
i Chris ! First I would like to thank you for your SwiftUI tutorials, they are very great. I’m building an application about physics and I would like to insert a serie of questions with 4 different possible answers. If it’s correct, a green check mark should appear and you can go to the next question and if not a red cross should appear and you have to try again (something the same than at the end of each Mac tutorials about SwiftUI). I think I can find the solution by myself but I would really appreciate if you do a video on the idea... Thank you anyway. I’m looking forward to discover your new videos 💕
Great Video and nice explanations even understandable for second language guy Wish you the best and hope you will continue for a few more years you Videos are great
Hey. Instead of setting every index in the numbers array you could use the map function with just one line of code. And instead of Cornerradius it is better to use .clipshape(Capsule())
Ideas for future videos: Start with main menu, button to select another screen containing a keypad 1-9,0, & clear button, entered numbers appear onscreen in a box, then another button passes those to another screen
What do you mean by a "scrolling platform". Like Super Mario or Donkey Kong type of games that moves from left right? We are working on something more "gaming" base, it will be available on www.codewithchris.com this year. @AdrienVillez
When you did the additional padding for the spin button using an array with .trailing and .leading, could you also have just used .horizontal instead or is that not the same?
Hello, its not really the same, the padding would mean that add a pad of 30 to both the trailing and the leading, so it will resize tthe button and make it bigger so it can conform to the trailing and leading pad.. if it was just horizontal then it would not resize and just be at the center like it already is - Francis
Hi! Here are some app ideas: Parking checker for availability, Bus checker, reminders, sing-along songs, sticker apps, drawing apps, quiz-studying, language changer, and an internet speed checker app!
Hello, yes it should be possible, you can probably add a timer and have it trigger a transision (flip) every 0.1/0.25 seconds X number of times read about timers here codewithchris.com/swift-timer/ - Francis
Hopefully this answers your question. Everything from Line 17 to Line 19 (included) could be written in one line. Line 18 has a dot because you can add multiple parameter this way. Every tie you go back to the line to make it more readable. If the Simulator wasn't present, line 18 would go all the way to the right with green, blue So something like: HelloAndWelcome .takeACoffee() .sitDown() .letsChat() Could also be written like: HelloAndWelcome.takeACoffee().sitDown().letsChat() @AdrienVillez
@@CodeWithChris Thank you for replying me. Actually, at 5:37, you selected the whole content, and said " let me go up here", where is "here"? It should be at the upper left corner somewhere. I cannot see it through the video, where did you click. Thank you. I am really an annoying guy.
oops, my bad on this, I should have move the video upward in the editing instead of just focusing on the code. Chris did this: studyswift.blogspot.com/2016/08/xcode-tip-hotkey-to-format-indentation.html @AdrienVillez
SwiftUI app that makes API calls! Perfect because I just released a video explaining what APIs are and next week, a video for JSON parsing. Now i can combine those teachings with a SwiftUI demo hitting an API!
Hey! I have a question, I am creating my own app, but with a few techniques in this video. I have a question. For the cards, I want to put 5 of them, but how do I make them smaller? I want to fit 5 same-measurement cards in an HStack, but I don't know how to change the size of the cards! Thanks!!!
Also, I'm always getting this mistake! Type '()' cannot conform to 'View'; only struct/enum/class types can conform to protocols. Here is the full code of mine. (I deleted the import information on this comment, so it could all fit!) Thanks! var body: some View {
Hello, i think it would be best to post this on our community forum so we can take a better look at your project, you can change the sizes by changing the values in the storyboard though - Francis
Idea for app - Core Data list , SwiftUI app. In short, an app where you have a list of genres of movies you have watched, then you click on the genre and get into the list of movies in that genre where you can add and remove items in that list. I know all of this can be done with out Core Data, but it is also a great chance to work with two big frameworks in iOS
What about an app that shows your progress of self learn swiftUI with CodeWithChrist and using charts to display your progress status? That would be interesting as you can understand all your followers' progress in learning swiftUI from your youtube channel.
I'm watching these videos now and noticed they were created in 2020 with Xcode v 11.3. I have Xcode 14.3 and do not have AppDelegate, SceneDelegate, etc. Is this a problem? I'm assuming they are still in Xcode but now hidden for some reason?
What about a calendar in landscape mode and multiple views? What about an app which is about learning something and user can unlock different parts of a car for example new wheels and build a great car due process? In General I Wonder how animations are done in app development or apps with databases
CodeWithChris yeah sort of. For example if you would implement a math class, students can compare themselves with others and have fun while learning math
can I have some CodeWithChris links for videos like this one because I really like the videos that you make and my favorites are always the ones where you have an app to make with user functionality thank you, - Maya!
Hiya Chris! Wanted some help with an app I would love to make - I wanted to ask how I can code an app to lock a user out of other apps or their phone completely for a specific amount of time that they have chosen - I want to make this app to allow users to lock away distractions so they can focus on what's important! Thanks in advance for your help and I hope to hear back from you soon!
I mirrored everything done in the video to a T but still had the “Function declares an opaque return type, but had no return statements in its body from which to infer an underlying type”. You initially had that error statement too but it seemed to have resolved itself. How do I get rid of it?
Hello, try xcode's suggestion on what might fix the issue. if you are still having problems try getting more support on our community forum at codecrew.codewithchris.com - Francis
Hello, our swiftUI videos could help you slowly build the app/interface that you want. if you go back the first swiftUI video has lists and values/pages to it so thats a good starting point - Francis
@@CodeWithChris Hi Francis, I've researched a little bit about app UI design and put up three pages like this: drive.google.com/open?id=1OIcRrJYVr_aRo0mGKqWR7yq1cTAh_s4h. Thank you so much for your encouragement! I will keep going on writing code in swiftUI next.
Hey bud, getting stuck at the first hurdle here: .foregroundColor(Color(red: 200/255, green: 143/255, blue: 32/255)) .edgesIgnoringSafeArea(.all) Swift is complaining with "'Int' is not convertible to 'Double'" for my values for the colour red, what gives?
Hello, can you take a look at this article to see if it helps? codewithchris.com/xcode-errors/ also you can try slowly putting breakpoints in your app to determine what the problem is it might be a wrong datatype or some unknown function - Francis
One thing to add, you should deduct the amount before spinning. With your current code, you only spend money if you loose. In real life, you always spend your bet first.
I would like to have an app that lists items and they can be sorted by filters with a second screen to view details of items from the list! Like an inventory
This may be more complicated as an app idea: This would be aimed at children and those who may not be able to read. It's also aimed at those who might travel a lot. How about an app that would show a book on screen and then you could then have an audio recording of the person in a TableView. The person receiving the recordings could then choose from a set of stories to hear. Humpty Dumpty, Winnie the Pooh, etc.
We have a couple of playlists to get you started on iOS app development. I would recommend starting here bit.ly/LearnSwift2019 and here bit.ly/BeginnersPlaylist Then use this tool (approadmap.io) to know what you need to learn next! - Kat
Hello, @TheSherYang! We apologize for the confusion! You may want to try our latest introductory video instead. ruclips.net/video/K0t-RCSlasE/видео.html Hope that helps! Thanks for taking the time to comment! --Joash
I followed your tutorial and really enjoyed it, but, when i want to have a look at my app and see the pictures, I am kind of disappointed. Though I am using pdf for vector graphics and scaling, the images are blurry as hell, what they are not, if I look at them on my mac. :( Is there any cool trick to get images crispy sharp?
Hello, make sure the images are nice and big so xcode can just scale it down, remember that apple screens have large resolutions (due to retina display) so its best to have it relatively big and let the app handle it. you can also try using Sketch in making your designs as it will work easily as assets in xcode - Francis
Basically ok.... except for the Color.pink Lol. 👍🏻🤣 However... there are things that were presented that beginners might be unclear about... Stacks - ZStacks, VStack and HStack... I know what they are but it would be nice to explain the Z, V prefixes in addition to the H prefix. Z usually represents depth. In this case, and in views, the first added item goes to the “back”, the next item in front of that and so on. I have seen so many beginners get confused with the concept of depth while viewing a 2D UI - Specifying fractions for color. Beginners might not be savvy about this. Your desired values were integers, but the system needs doubles. So the fractions are necessary to convert from integer to double - @State private - The explanation of @State seemed minimal and no explanation of private I don’t know Swift UI, but there seemed to be a ridiculous amount of *self.* ’s in there. Not a big fan of that. Too much like not @synthesize’ing in Objective-C.
Hello, this is because this is not the first tutorial of the SwiftUI series, this is for the more familiar with it to build their first game app - Francis
QOTD ⚡ Do you have any demo app ideas to build with SwiftUI? Let me know! 👇 Kick start your own app with my free 7 Day App Action Plan ➡️ bit.ly/7dplan
Hey Chris, Thanks for helpful videos. You rock!
My demo app idea is an audio player that uses AVAudioEngine buffering to schedule audio files for playback during various times of the day. Thx ❤️
Yes... have an initial VC with two choices.... Login or Sign Up. In that initial VC, enable a text field for an e-mail address if they choose Sign Up. Have Login and Sign Up segue to their own VC. ( For the purpose of teaching at least two ways to segue ). When segueing from the initial VC to the 2nd VC, pass the e-mail address from the 1st VC to the 2nd VC. Segues and passing data between VC. I see so many beginners get stuck with one or both of these then they get frustrated. Beginners also need to know how to add another Swift file, UIViewController class, and tie it to the 2nd VC they dragged and dropped onto the Storyboard. Maybe Swift UI has a better method... not sure. I have not seen any Swift UI tutorials covering two VC’s.
This is a realistic, practical suggestion. I say that because I helped two members of the *Code with Chris FB Community* with these two issues in the last two days.
Something with animation, Project > Game, an elaborate layout like an updated itinerary app tutorial, etc.
Demo App - Use MapKit to auto populate address with SwiftUI.
Hi Chris, Thanks for all the tutorials! I'd like to see a demo of a radio frequency scanner starting at the low end of the frequency range to a very high frequency range. This would help me with an app idea that I have and could I would be able to utilize it within my app.
LOL - I sat @ 17:40 for 20 minutes debugging where I went wrong in my code for it to consistently fail to build giving me an error that, according to Google was a question that could only be addressed by Apple compiling engineers. I did notice above this you specified Color. so I tried that out and voila!
Then I clicked play and saw you address that not even a second later xD Helps dig into the code and understand more for myself though so it was a good experience. I'm also happy that I was able to find the issue :)
Thanks as always CWC Team!
Great job on fixing it yourself! Thanks for watching this. 😊
- Kat
XD
Hi Chris! Would love to see more about building apps that require more user input functions, like a notes or to-do app. Thanks!
We just started a new series, it's a notes app. ruclips.net/video/vKCdVAg5h40/видео.html
- Kat
Awesome tutorial chief. Thank you for making out time to teach this. Let's build a functional weather app.
Tip for my learning mates: in the padding(), instead of using an array of [.leading, .trailing ], you can simply use .horizontal
Awesome, Augusto! :-) Thanks for your helpful tip! :-) -Arthur
Thanks you for your videos, Chris. Applicable and useful as always. Video suggestions: save an image from a dynamic list to CoreData in SwiftUI, comparison of using CoreData and Realm in SwiftUI and comparison of FireBase and Cloudkit with SwiftUI . Thanks!
Thanks for the suggestions! I'll add them to our list.
-Kat
Hey Chris! Love your tutorials! Can you make a multiple choice quiz app? Using both static mock data and fetching from api? Thank you! 🔥
Ideas for apps:
- To-Do list app
- Note taking app
Thank you so much for your suggestions!
I am new to iOS development, but a senior web developer. Should i focus on Swift UI or the old way?
This is a good article that covers that: www.hackingwithswift.com/quick-start/swiftui/answering-the-big-question-should-you-learn-swiftui-uikit-or-both
-Kat
A cool app to build (and my goal first app) is a simple score tracker for golf or disc golf.
Features include:
+ track score of new games
+ allow multiple players
+ show past rounds
+ display user data and average scores
+ display course data and toughest holes
Thanks for the suggestion! I'll add it to our list.
- Kat
Good job Chris. Love that app. Simple and fun!
Thank you! 🙌
-Kat
Thank you Chirs!!! 👍🏻
Welcome!
- Kat
Chris could you make a multi screen app/ game. Like could you create a main Home Screen that would give options to choose a game mode etc…
Hi Vivaan! You should check out our iOS Foundations CWC+ Course learn.codewithchris.com/courses/foundations2023 :) - Pat
Hi Chris, where can I find the background image fo the slot app? Thank you and congratulations for your video lessons, I'm improving to develop apps thank to you! ;)
You're welcome! Here are all of the resources:
ruclips.net/user/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY
ruclips.net/user/redirect?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip
ruclips.net/user/redirect?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0
ruclips.net/user/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
Best video yet im not lying!
Thank you! 🙌
- Kat
@@CodeWithChris No Prob!
Hi Chris, question regarding betting logic when the user wins. Shouldn't it be "self.credits += (self.BetAmount * 9)" ?
Bet amount will not be substracted otherwise because of the if/else statement, and that should always be the case.
Do you agree? And are there any shorter ways to code this? Thanks for the great work!
// Check winnings
self.credits -= self.BetAmount
if self.numbers[0] == self.numbers[1] && self.numbers[1] == self.numbers[2]
// Won
self.credits += (self.BetAmount * 10)
}
or solution 2:
// Spin & Win
if self.numbers[0] == self.numbers[1] && self.numbers[1] == self.numbers[2] {
self.credits += (self.BetAmount * 9)
}
else {
self.credits -= self.BetAmount
}
Hello, the logic remains the same though he still gets "x10" of the amount he bet , in the original, the player will always have his bet deducted regarless of win or lose (meaning if he wins he will get x9 of his bet amount, cuz he still needs to pay for this current bet)
on your version, he will only pay the bet amount if he loses, then if he wins he will get x9 of his bet amount
Is it possible to get the latest crude oil/ gold/ commodities price with DIY app? Thanks.
Hello, you might need to find an API that can provide those prices so you'll be able to have them in real time
- Francis
Great videos that are easy to follow and delivered at a good pace.
Ideas for demo apps could be local tourism where you can get information on restaurants, things to do with location map etc
Thanks for the suggestions! I'll add them to our list.
-Kat
Hello yes a tutorial idea, make an app with a Firebase database, Login and Authentication, Camera, and photo album, Thank you, James.
Thanks for the suggestions! It's added to the list.
-Kat
Hi, i have a general Question: In the Interface Builder where the iPhone is shown and i can drag and drop buttons etc. on it. I see in previus Videos from you that the Top Bar of the iPhone is shown. I mean the clock an the battery symbol. Now it is gone. How am I get this Top Bar shown again in XCode? (I use XCode 11.3.1 to be specific)
By the way, great Videos which you make. I have learned so much. Greetings from Germany.
Hello, that should be in the safe area at the top, so when making your app and you want to show the topbar you need to set the constraints to only the safe area at the top
- Francis
@@CodeWithChris Thanks for the Answer, but i mean in XCode (in the Interface Builder where I can drag Objects in). I see the Safe Area because for example the iPhone 11 has white spots above and under the blue area. But it confuses me that above the Safe Area ther is the Clock and Battery Symbol not shown. Also on the normal Displays like the iPhone 8.
For example in this Video: ruclips.net/video/qC6DzF_ACpQ/видео.html at Minute 2:30 there is in the Interface Builder the Clock and Battery Symbol shown. And my Question is if it is possible to show that in XCode 11?
Nice content. This is what I need. Thanks.
Awesome! Thanks! 😊
- Kat
Amazing lessons. Thank you Chris!
Our pleasure!
- Kat
Chris it always amazes how you design apps. Beautiful. I just checked if Set(numbers).count = 1 {//Win . Because Set does not have duplicates. Waiting for the next part. As for app ideas - any app that deals with logining to google or firebase or to cloud anywhere and saving something there would be nice)
Thanks for the feedback and for the suggestions! They're on our list! :)
-Kat
i Chris ! First I would like to thank you for your SwiftUI tutorials, they are very great.
I’m building an application about physics and I would like to insert a serie of questions with 4 different possible answers. If it’s correct, a green check mark should appear and you can go to the next question and if not a red cross should appear and you have to try again (something the same than at the end of each Mac tutorials about SwiftUI).
I think I can find the solution by myself but I would really appreciate if you do a video on the idea...
Thank you anyway. I’m looking forward to discover your new videos 💕
Hello, there is actually a "quiz app" but it is avaiable for the paid course
- Francis
where can I find II?
Here codewithchris.com/beginnercourse/
- Kat
Thanks for your tutorials, they are great!
suggestion: A basic paint app, where you can draw including an undo function
Thanks for watching our tutorials and for your suggestion! It's on our list. :)
- Kat
Great Video and nice explanations even understandable for second language guy
Wish you the best and hope you will continue for a few more years
you Videos are great
Thanks a lot!
- Kat
Hey. Instead of setting every index in the numbers array you could use the map function with just one line of code. And instead of Cornerradius it is better to use .clipshape(Capsule())
Hey Donat, thank you! I really appreciate your feedback! I’ll look into that and incorporate it into my future vids
it was a good lesson. thanks Chris.
Our pleasure!
- Kat
Ideas for future videos: Start with main menu, button to select another screen containing a keypad 1-9,0, & clear button, entered numbers appear onscreen in a box, then another button passes those to another screen
Really appreciate the tutorial videos! :-) Would love to see a scrolling platform game tutorial :-) Thank you again :-)
What do you mean by a "scrolling platform". Like Super Mario or Donkey Kong type of games that moves from left right?
We are working on something more "gaming" base, it will be available on www.codewithchris.com this year.
@AdrienVillez
@@CodeWithChris Perfect! Yes a Mario scrolling system would be an amazing tutorial :-)
Hi Chris! how about one that includes core data and Apple Watch...?
Thanks for the suggestions! I'll add them to our list.
-Kat
When you did the additional padding for the spin button using an array with .trailing and .leading, could you also have just used .horizontal instead or is that not the same?
Hello, its not really the same, the padding would mean that add a pad of 30 to both the trailing and the leading, so it will resize tthe button and make it bigger so it can conform to the trailing and leading pad.. if it was just horizontal then it would not resize and just be at the center like it already is
- Francis
Thanks for the video❤
You're welcome, Santhosh! 😊 -Arthur
Outstanding!
Thank you! Cheers!
- Kat
Hi! Here are some app ideas: Parking checker for availability, Bus checker, reminders, sing-along songs, sticker apps, drawing apps, quiz-studying, language changer, and an internet speed checker app!
Thanks for sharing these app ideas!
- Kat
Can you add a animation showing images flip x amount of times?
Hello, yes it should be possible, you can probably add a timer and have it trigger a transision (flip) every 0.1/0.25 seconds X number of times
read about timers here codewithchris.com/swift-timer/
- Francis
Chris, at 5:36, please teach me how to structure the messy lines. Thank you.
Hopefully this answers your question. Everything from Line 17 to Line 19 (included) could be written in one line.
Line 18 has a dot because you can add multiple parameter this way. Every tie you go back to the line to make it more readable.
If the Simulator wasn't present, line 18 would go all the way to the right with green, blue
So something like:
HelloAndWelcome
.takeACoffee()
.sitDown()
.letsChat()
Could also be written like:
HelloAndWelcome.takeACoffee().sitDown().letsChat()
@AdrienVillez
@@CodeWithChris Thank you for replying me. Actually, at 5:37, you selected the whole content, and said " let me go up here", where is "here"? It should be at the upper left corner somewhere. I cannot see it through the video, where did you click.
Thank you. I am really an annoying guy.
oops, my bad on this, I should have move the video upward in the editing instead of just focusing on the code. Chris did this: studyswift.blogspot.com/2016/08/xcode-tip-hotkey-to-format-indentation.html
@AdrienVillez
@@CodeWithChris I really appreciate it. I spent 10 minutes to look for this way, but failed. You are the best. Nice weekend.😄
Thank you for the video. I suggest a app that use a RESTFUL API.
SwiftUI app that makes API calls! Perfect because I just released a video explaining what APIs are and next week, a video for JSON parsing. Now i can combine those teachings with a SwiftUI demo hitting an API!
CodeWithChris Thank you! I wish that you will use the new combien framework techniques (publishers...) observable...
Hey! I have a question, I am creating my own app, but with a few techniques in this video. I have a question. For the cards, I want to put 5 of them, but how do I make them smaller? I want to fit 5 same-measurement cards in an HStack, but I don't know how to change the size of the cards! Thanks!!!
Also, I'm always getting this mistake! Type '()' cannot conform to 'View'; only struct/enum/class types can conform to protocols. Here is the full code of mine. (I deleted the import information on this comment, so it could all fit!) Thanks!
var body: some View {
ZStack {
var debug: some View {
MyViewWithError(property: self.property)
}
//Background:
Circle()
.foregroundColor(Color (red: 90/255, green: 200/255, blue: 250/255))
.edgesIgnoringSafeArea(.all)
Circle()
.foregroundColor(Color (red: 250/255, green: 45/255, blue: 85/255))
.rotationEffect(Angle(degrees: 45))
.edgesIgnoringSafeArea(.all)
VStack {
Spacer()
//Title:
HStack {
Image(systemName: "sun.min")
.foregroundColor(.black)
Text("Eatable Turbine")
.bold()
.foregroundColor(.white)
Image(systemName: "sun.min")
.foregroundColor(.black)
}.scaleEffect(2)
Spacer()
//cards
HStack {
Spacer()
Image(symbols[numbers[0]])
.resizable()
.aspectRatio(1, contentMode: .fit)
.background(Color.white.opacity(0.5))
.cornerRadius(10)
Image(symbols[numbers[1]])
.resizable()
.aspectRatio(1, contentMode: .fit)
.background(Color.white.opacity(0.5))
.cornerRadius(10)
Image(symbols[numbers[2]])
.resizable()
.aspectRatio(1, contentMode: .fit)
.background(Color.white.opacity(0.5))
.cornerRadius(10)
Image(symbols[numbers[3]])
.resizable()
.aspectRatio(0.5, contentMode: .fit)
.background(Color.white.opacity(0.5))
.cornerRadius(20)
Image()
.frame(width: 32.0, height: 32.0)
Spacer()
}
Spacer()
//Button
Button(action: {
//Change the images
self.numbers[0] = Int.random(in:
0...self.symbols.count - 1)
self.numbers[1] = Int.random(in:
0...self.symbols.count - 1)
self.numbers[2] = Int.random(in:
0...self.symbols.count - 1)
//Check winnings
if self.numbers[0]
== self.numbers[1] && self.numbers[1] == self.numbers[2]{
}
}) {
Text("Spin")
.bold()
.foregroundColor(.white)
.padding(.all, 10)
.padding([.leading, .trailing], 30)
.background(Color.blue)
.cornerRadius(20)
}
Spacer()
}
}
}
Hello, i think it would be best to post this on our community forum so we can take a better look at your project, you can change the sizes by changing the values in the storyboard though
- Francis
Idea for app - Core Data list , SwiftUI app. In short, an app where you have a list of genres of movies you have watched, then you click on the genre and get into the list of movies in that genre where you can add and remove items in that list. I know all of this can be done with out Core Data, but it is also a great chance to work with two big frameworks in iOS
Thanks for the suggestion! I'll add this to our list.
-Kat
What about an app that shows your progress of self learn swiftUI with CodeWithChrist and using charts to display your progress status? That would be interesting as you can understand all your followers' progress in learning swiftUI from your youtube channel.
Thanks for the suggestion!
-Kat
I'm watching these videos now and noticed they were created in 2020 with Xcode v 11.3. I have Xcode 14.3 and do not have AppDelegate, SceneDelegate, etc. Is this a problem? I'm assuming they are still in Xcode but now hidden for some reason?
funny coincidence, my 6 favorite you tubers are ALL Canadian! including Chris of course
That's awesome!!
- Kat
@@CodeWithChris Ikr
Cool App...... never was a gambler and the random numbers generated prove that beyond doubt.
Thanks! It was at least fun to create. 😊
-Kat
Great Work Bruh, id like tutorials for lists and navigationviews
Thanks for these suggestions!
-Kat
Keep adding new features and options to this app. That would be nice!
◡̈
Yup, thanks for the suggestion! 😊
-Kat
Hi, Chris. That's so weird. Between 16:16 and 16:42, my work is okay, there was no warning at all, I just followed your steps thoroughly. 😄
Sounds great! :) - Pat
What about a calendar in landscape mode and multiple views?
What about an app which is about learning something and user can unlock different parts of a car for example new wheels and build a great car due process?
In General I Wonder how animations are done in app development or apps with databases
Hey Tobias, i appreciate the suggestions! Your one about the car is really detailed though haha it sounds like some sort of game?
CodeWithChris yeah sort of. For example if you would implement a math class, students can compare themselves with others and have fun while learning math
can I have some CodeWithChris links for videos like this one because I really like the videos that you make and my favorites are always the ones where you have an app to make with user functionality thank you, - Maya!
You can just seach them here on RUclips. Or browse our channel uploads! :)
- Kat
@@CodeWithChris ok thanks! Ill check your channel because searching for particular video names are not for me!
Superb
Thank you for your support Shobin!
Hiya Chris! Wanted some help with an app I would love to make - I wanted to ask how I can code an app to lock a user out of other apps or their phone completely for a specific amount of time that they have chosen - I want to make this app to allow users to lock away distractions so they can focus on what's important! Thanks in advance for your help and I hope to hear back from you soon!
Hello, I don't think that is possible with the app, you might want to look at parental accounts then if you want to disable and enable apps
- Francis
ideas for apps:
-QR code creator
-- shopping cart app
-tic tac toe
Thanks for the suggestions! I'll add them to our list!
-Kat
Idea for SwiftUI
- Streak counter
- HIIT Timer
Great video, btw!
Thanks for the suggestions! I'll add them to our list.
-Kat
I suggest any app that uses tableview
Thanks for the suggestion!
- Kat
I mirrored everything done in the video to a T but still had the “Function declares an opaque return type, but had no return statements in its body from which to infer an underlying type”. You initially had that error statement too but it seemed to have resolved itself. How do I get rid of it?
Hello, try xcode's suggestion on what might fix the issue. if you are still having problems try getting more support on our community forum at codecrew.codewithchris.com
- Francis
Hi Chris, I’m building a live streaming app with SwiftUI, I hope to learn the UI for watching live stream
Hello, our swiftUI videos could help you slowly build the app/interface that you want. if you go back the first swiftUI video has lists and values/pages to it so thats a good starting point
- Francis
@@CodeWithChris Hi Francis, I've researched a little bit about app
UI design and put up three pages like this: drive.google.com/open?id=1OIcRrJYVr_aRo0mGKqWR7yq1cTAh_s4h. Thank you so much for your encouragement! I will keep going on writing code in swiftUI next.
App ideas :
habit app -used to track habits and also helps in changing them
Thanks for the suggestion! I'll add it to our list.
-Kat
Thank you for the video
You are so welcome! -Arthur
try a road crossing game for an app! just a quick suggestion!
Awesome! You can add these tutorial suggestions here: cwc.to/request
- Kats
@@CodeWithChris ok cool!
Thanks Chris. What about a simple game using peer to peer connectivity? Maybe tic tac toe?
Ok, thanks for your suggestion! :-) -Arthur
🙌
Thanks for watching! 🙌
-Kat
@@CodeWithChris welcome you have done good job i wish if you can show some programming for easy game for beginners
Hey bud, getting stuck at the first hurdle here:
.foregroundColor(Color(red: 200/255, green: 143/255, blue: 32/255))
.edgesIgnoringSafeArea(.all)
Swift is complaining with "'Int' is not convertible to 'Double'" for my values for the colour red, what gives?
Your code looks correct! Try building or running your app. Sometimes Xcode hasn't detected your code change and so the error doesn't go away
If I start even a complete new project this comes when I want to start the app Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee02b9fe0)
Hello, can you take a look at this article to see if it helps? codewithchris.com/xcode-errors/
also you can try slowly putting breakpoints in your app to determine what the problem is
it might be a wrong datatype or some unknown function
- Francis
One thing to add, you should deduct the amount before spinning. With your current code, you only spend money if you loose. In real life, you always spend your bet first.
Oops, you're right. Thanks for mentioning this! We really appreciate it.
-Kat
Swiftui MacOS app (Mayberry discussing the difference between iOS). checkbook.
Thanks for the suggestions! It's added to the list.
-Kat
liked it!
I'm glad! 🥳
- Kat
I would like to have an app that lists items and they can be sorted by filters with a second screen to view details of items from the list! Like an inventory
oh I just saw you already have this in other videos :// still cool Thanks!
Yay, awesome, Carles! Keep on having fun! :-) -Arthur
How to add a beep tone when matching two and another beep tone when matching all three.
Hello, the idea should be the same and you can use the the AVFoundation no problem ruclips.net/video/1htq-c4kVdA/видео.html
- Francis
Ideas for apps:
- App with forms and tables
- App with reports and charts
Thanks for the suggestions! I'll add them to our list.
-Kat
as a CS teacher, i would always want to build some simulator or animation for teaching array, for loop or nested loop.
Go for it! - Pat
how do you open the symbol place where you get the star? I forgot! 0_o
Hello, this is a system icon that started in ios 13 called SFSymbols
- Francis
Hai Chris, can you make tutorial using swift UI to make a e-commerc app? Thank You. I would like to see, like, and share your video
Thanks for your suggestion! -Arthur
How about something different: an app that creates generative art. Thanks.
Thanks for the suggestion! I added it to our list.
- Kat
This may be more complicated as an app idea: This would be aimed at children and those who may not be able to read. It's also aimed at those who might travel a lot. How about an app that would show a book on screen and then you could then have an audio recording of the person in a TableView. The person receiving the recordings could then choose from a set of stories to hear. Humpty Dumpty, Winnie the Pooh, etc.
Cool app idea! Keep on developing it! :-) -Arthur
What is he title of "the next video"?
Hello, do you mean the next lesson for this series?
-Kat
@@CodeWithChris Yes. More importantly, what is the title of the video where you further develop the Slots app?
the assets link isn't working for me :(
Here are all of the resources:
bit.ly/2AyuoOs
bit.ly/31K9F5u
bit.ly/3gtlSzB
bit.ly/38qPdrl
- Kat
@@CodeWithChris Thank you!
Isso é brilhante.
Kind of a sticker app maybe!!
Thanks for the suggestion!
-Kat
How about a weather app
Thanks for the suggestion! I'll add it to our list.
-Kat
make a video sharing app tutorial
Hi there, you can add your tutorial requests here: cwc.to/request
- Kat
Idea for app: Navigation /API decoding
We have a couple of playlists to get you started on iOS app development. I would recommend starting here bit.ly/LearnSwift2019 and here bit.ly/BeginnersPlaylist
Then use this tool (approadmap.io) to know what you need to learn next!
- Kat
A tutorial on using Stripe and Firebase!
Thanks for dropping by! -Arthur
Ideas for app:
Alarm clock app!
PLzzzzz
Cool! Thanks for the suggestion, it's noted!
-Kat
:)
Add your tutorial requests for us here: cwc.to/request
- Kat
Was curious on how coding works. And damn, just had a huge migraine watching this. Everything is so confusing 🤯
Hello, @TheSherYang!
We apologize for the confusion!
You may want to try our latest introductory video instead.
ruclips.net/video/K0t-RCSlasE/видео.html
Hope that helps! Thanks for taking the time to comment!
--Joash
Super cool!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You're cooler, Christine, always!
Hi ! Ideas for app:
- Instagram clone
- Twitter clone
Thanks for the suggestions! I'll add them to our list.
-Kat
"Cannot preview in this file -- Slots.app may have crashed." anybody has been able to resolve this issue? thanks
Hello, Francisco! Our technical support staff can help you in our fourm. Post your question here: codecrew.codewithchris.com. All the best!
I followed your tutorial and really enjoyed it, but, when i want to have a look at my app and see the pictures, I am kind of disappointed. Though I am using pdf for vector graphics and scaling, the images are blurry as hell, what they are not, if I look at them on my mac. :(
Is there any cool trick to get images crispy sharp?
Hello, make sure the images are nice and big so xcode can just scale it down, remember that apple screens have large resolutions (due to retina display) so its best to have it relatively big and let the app handle it. you can also try using Sketch in making your designs as it will work easily as assets in xcode
- Francis
Please improve spining animation for this app
Thanks for the suggestion!
-Kat
I have an idea for app. How about making tic-tac-toe? Based on your app, we’ll be able to make any kind of board games like chess😎
Cool! It's actually already on our list. Thanks for the suggestion!
-Kat
First one to view and comment
Here you go: 🏅!
@AdrienVillez
@@CodeWithChristhnk u sir
😍
Thanks for watching!
App tutorial idea: messenges / WhatsApp clone
Cool! Thanks for the suggestion! You can also send us your requests here: cwc.to/request
- Kat
Roulette app
Thanks for this suggestion! I will add that to our list. :)
- Kat
Shop App
Thanks for the suggestion! I'll add it to our list.
-Kat
Basically ok.... except for the Color.pink Lol. 👍🏻🤣
However... there are things that were presented that beginners might be unclear about...
Stacks - ZStacks, VStack and HStack... I know what they are but it would be nice to explain the Z, V prefixes in addition to the H prefix. Z usually represents depth. In this case, and in views, the first added item goes to the “back”, the next item in front of that and so on. I have seen so many beginners get confused with the concept of depth while viewing a 2D UI
- Specifying fractions for color. Beginners might not be savvy about this. Your desired values were integers, but the system needs doubles. So the fractions are necessary to convert from integer to double
- @State private - The explanation of @State seemed minimal and no explanation of private
I don’t know Swift UI, but there seemed to be a ridiculous amount of *self.* ’s in there. Not a big fan of that. Too much like not @synthesize’ing in Objective-C.
Hello, this is because this is not the first tutorial of the SwiftUI series, this is for the more familiar with it to build their first game app
- Francis
they talked about everything you mentioned in previous videos! :)
Match game
Thanks! It's already on our list. :)
-Kat
O yea build a logolizer
What's a logolizer??
CodeWithChris like used in custom T-shirt web sites ?
loan app
Thanks for the suggestion! I'll add it to our list.
-Kat