Тёмный

SwiftUI Tutorial: Build a Slots App 

CodeWithChris
Подписаться 601 тыс.
Просмотров 33 тыс.
50% 1

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

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 234   
@CodeWithChris
@CodeWithChris 4 года назад
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
@AhangamaBeach
@AhangamaBeach 4 года назад
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 ❤️
@gauntletwielder6306
@gauntletwielder6306 4 года назад
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.
@ErikaAguirreHouston
@ErikaAguirreHouston 4 года назад
Something with animation, Project > Game, an elaborate layout like an updated itinerary app tutorial, etc.
@stevegrubb592
@stevegrubb592 4 года назад
Demo App - Use MapKit to auto populate address with SwiftUI.
@carmineloschiavo5864
@carmineloschiavo5864 4 года назад
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.
@TheOnlyHelix
@TheOnlyHelix 4 года назад
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
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! I'll add it to our list. - Kat
@Noulvari
@Noulvari 4 года назад
Ideas for apps: - To-Do list app - Note taking app
@CodeWithChris
@CodeWithChris 4 года назад
Thank you so much for your suggestions!
@augustogalindo8687
@augustogalindo8687 4 года назад
Tip for my learning mates: in the padding(), instead of using an array of [.leading, .trailing ], you can simply use .horizontal
@CodeWithChris
@CodeWithChris 4 года назад
Awesome, Augusto! :-) Thanks for your helpful tip! :-) -Arthur
@kylehuender
@kylehuender 4 года назад
Hi Chris! Would love to see more about building apps that require more user input functions, like a notes or to-do app. Thanks!
@CodeWithChris
@CodeWithChris 4 года назад
We just started a new series, it's a notes app. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vKCdVAg5h40.html - Kat
@abiodunosagie
@abiodunosagie 18 дней назад
Awesome tutorial chief. Thank you for making out time to teach this. Let's build a functional weather app.
@darren7650
@darren7650 Год назад
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
@postmd5179
@postmd5179 4 года назад
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!
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! I'll add them to our list. -Kat
@klhmia
@klhmia 4 года назад
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!
@CodeWithChris
@CodeWithChris 4 года назад
Great job on fixing it yourself! Thanks for watching this. 😊 - Kat
@mayaa6910
@mayaa6910 4 года назад
XD
@donathmm3881
@donathmm3881 4 года назад
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())
@CodeWithChris
@CodeWithChris 4 года назад
Hey Donat, thank you! I really appreciate your feedback! I’ll look into that and incorporate it into my future vids
@javakian1
@javakian1 4 года назад
Hello yes a tutorial idea, make an app with a Firebase database, Login and Authentication, Camera, and photo album, Thank you, James.
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! It's added to the list. -Kat
@aarna7128
@aarna7128 4 года назад
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!
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for sharing these app ideas! - Kat
@triscal
@triscal 4 года назад
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
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! I'll add this to our list. -Kat
@AlexSison-jt2uc
@AlexSison-jt2uc 7 месяцев назад
Hey Chris! Love your tutorials! Can you make a multiple choice quiz app? Using both static mock data and fetching from api? Thank you! 🔥
@vivshahani
@vivshahani Год назад
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…
@CodeWithChris
@CodeWithChris Год назад
Hi Vivaan! You should check out our iOS Foundations CWC+ Course learn.codewithchris.com/courses/foundations2023 :) - Pat
@nelglezmusic
@nelglezmusic 4 года назад
Good job Chris. Love that app. Simple and fun!
@CodeWithChris
@CodeWithChris 4 года назад
Thank you! 🙌 -Kat
@matthiasgornert2949
@matthiasgornert2949 4 года назад
Thanks for your tutorials, they are great! suggestion: A basic paint app, where you can draw including an undo function
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for watching our tutorials and for your suggestion! It's on our list. :) - Kat
@lindahassard9162
@lindahassard9162 4 года назад
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
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! I'll add them to our list. -Kat
@juamsalvez
@juamsalvez 4 года назад
Thank you Chirs!!! 👍🏻
@CodeWithChris
@CodeWithChris 4 года назад
Welcome! - Kat
@mayaa6910
@mayaa6910 4 года назад
Best video yet im not lying!
@CodeWithChris
@CodeWithChris 4 года назад
Thank you! 🙌 - Kat
@mayaa6910
@mayaa6910 4 года назад
@@CodeWithChris No Prob!
@tanjalehmann9490
@tanjalehmann9490 4 года назад
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 💕
@CodeWithChris
@CodeWithChris 4 года назад
Hello, there is actually a "quiz app" but it is avaiable for the paid course - Francis
@tanjalehmann9490
@tanjalehmann9490 4 года назад
where can I find II?
@CodeWithChris
@CodeWithChris 4 года назад
Here codewithchris.com/beginnercourse/ - Kat
@Orokhovatskiy
@Orokhovatskiy 4 года назад
Amazing lessons. Thank you Chris!
@CodeWithChris
@CodeWithChris 4 года назад
Our pleasure! - Kat
@volimpia
@volimpia 4 года назад
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)
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the feedback and for the suggestions! They're on our list! :) -Kat
@mjrichtingz2526
@mjrichtingz2526 4 года назад
Really appreciate the tutorial videos! :-) Would love to see a scrolling platform game tutorial :-) Thank you again :-)
@CodeWithChris
@CodeWithChris 4 года назад
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
@mjrichtingz2526
@mjrichtingz2526 4 года назад
@@CodeWithChris Perfect! Yes a Mario scrolling system would be an amazing tutorial :-)
@ronniecreager
@ronniecreager 4 года назад
Keep adding new features and options to this app. That would be nice! ◡̈
@CodeWithChris
@CodeWithChris 4 года назад
Yup, thanks for the suggestion! 😊 -Kat
@mandarinnu
@mandarinnu 4 года назад
Nice content. This is what I need. Thanks.
@CodeWithChris
@CodeWithChris 4 года назад
Awesome! Thanks! 😊 - Kat
@zeryez6347
@zeryez6347 4 года назад
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
@CodeWithChris
@CodeWithChris 4 года назад
Thanks a lot! - Kat
@abdouett3676
@abdouett3676 4 года назад
Thank you for the video. I suggest a app that use a RESTFUL API.
@CodeWithChris
@CodeWithChris 4 года назад
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!
@abdouett3676
@abdouett3676 4 года назад
CodeWithChris Thank you! I wish that you will use the new combien framework techniques (publishers...) observable...
@claudiodipietra9207
@claudiodipietra9207 4 года назад
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! ;)
@CodeWithChris
@CodeWithChris 4 года назад
You're welcome! Here are all of the resources: ru-vid.com?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L02%2520Lesson%2520Assets.zip&redir_token=OusZa5Rlj8qosxZTHYwrI8SlSw58MTU4NDkyMTAwOEAxNTg0ODM0NjA4&event=video_description&v=rmTQcILJRcY ru-vid.com?v=MJP60XnN4us&event=video_description&redir_token=WAYn_gzVR9DkvnO-nB_POMY7VJV8MTU4NDkyMTA4OUAxNTg0ODM0Njg5&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L03%2520Activity%2520Assets.zip ru-vid.com?q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L04%2520Starter%2520Project.zip&v=wQLOWv8l7yI&event=video_description&redir_token=LokwxrZrkMlUj4Vfji_dWA8A4CJ8MTU4NDkyMTExNEAxNTg0ODM0NzE0 ru-vid.com?redir_token=M_WpsanhBg_3FWOLzKMjiS_OrjB8MTU4NDkyMTE1M0AxNTg0ODM0NzUz&q=https%3A%2F%2Fcodewithchris.com%2Fcode%2FSwiftUI%2520M1L06%2520Lesson%2520Assets.zip&v=51Z9Kun7tFo&event=video_description - Kat
@jizhou749
@jizhou749 2 года назад
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. 😄
@CodeWithChris
@CodeWithChris 2 года назад
Sounds great! :) - Pat
@arifakcay4992
@arifakcay4992 4 года назад
it was a good lesson. thanks Chris.
@CodeWithChris
@CodeWithChris 4 года назад
Our pleasure! - Kat
@om.c3122
@om.c3122 4 года назад
Great Work Bruh, id like tutorials for lists and navigationviews
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for these suggestions! -Kat
@devhopes
@devhopes 4 года назад
Outstanding!
@CodeWithChris
@CodeWithChris 4 года назад
Thank you! Cheers! - Kat
@TM-jb8bw
@TM-jb8bw 4 года назад
I am new to iOS development, but a senior web developer. Should i focus on Swift UI or the old way?
@CodeWithChris
@CodeWithChris 4 года назад
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
@kayajones527
@kayajones527 4 года назад
ideas for apps: -QR code creator -- shopping cart app -tic tac toe
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! I'll add them to our list! -Kat
@4bl0xx30
@4bl0xx30 4 года назад
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.
@CodeWithChris
@CodeWithChris 4 года назад
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
@4bl0xx30
@4bl0xx30 4 года назад
​@@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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?
@koksingooi9301
@koksingooi9301 4 года назад
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.
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! -Kat
@rajatrawat3317
@rajatrawat3317 4 года назад
App ideas : habit app -used to track habits and also helps in changing them
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! I'll add it to our list. -Kat
@jsonify
@jsonify 4 года назад
Idea for SwiftUI - Streak counter - HIIT Timer Great video, btw!
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! I'll add them to our list. -Kat
@TylerWasick
@TylerWasick 4 года назад
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.
@CodeWithChris
@CodeWithChris 4 года назад
Oops, you're right. Thanks for mentioning this! We really appreciate it. -Kat
@konniciwa525625
@konniciwa525625 4 года назад
Is it possible to get the latest crude oil/ gold/ commodities price with DIY app? Thanks.
@CodeWithChris
@CodeWithChris 4 года назад
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
@bitsurfer0101
@bitsurfer0101 3 года назад
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.
@CodeWithChris
@CodeWithChris 3 года назад
Cool app idea! Keep on developing it! :-) -Arthur
@chrispy104k
@chrispy104k 4 года назад
Cool App...... never was a gambler and the random numbers generated prove that beyond doubt.
@CodeWithChris
@CodeWithChris 4 года назад
Thanks! It was at least fun to create. 😊 -Kat
@athensrhodos21
@athensrhodos21 4 года назад
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 }
@CodeWithChris
@CodeWithChris 4 года назад
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
@mayaa6910
@mayaa6910 4 года назад
funny coincidence, my 6 favorite you tubers are ALL Canadian! including Chris of course
@CodeWithChris
@CodeWithChris 4 года назад
That's awesome!! - Kat
@mayaa6910
@mayaa6910 4 года назад
@@CodeWithChris Ikr
@SanthoshKumarsdh
@SanthoshKumarsdh 4 года назад
Thanks for the video❤
@CodeWithChris
@CodeWithChris 4 года назад
You're welcome, Santhosh! 😊 -Arthur
@jizhou749
@jizhou749 2 года назад
Chris, at 5:36, please teach me how to structure the messy lines. Thank you.
@CodeWithChris
@CodeWithChris 2 года назад
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
@jizhou749
@jizhou749 2 года назад
@@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.
@CodeWithChris
@CodeWithChris 2 года назад
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
@jizhou749
@jizhou749 2 года назад
@@CodeWithChris I really appreciate it. I spent 10 minutes to look for this way, but failed. You are the best. Nice weekend.😄
@manmohitsingh9813
@manmohitsingh9813 4 года назад
Ideas for apps: - App with forms and tables - App with reports and charts
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! I'll add them to our list. -Kat
@cloobs1
@cloobs1 4 года назад
Hi Chris! how about one that includes core data and Apple Watch...?
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! I'll add them to our list. -Kat
@tobiasstil1495
@tobiasstil1495 4 года назад
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
@CodeWithChris 4 года назад
Hey Tobias, i appreciate the suggestions! Your one about the car is really detailed though haha it sounds like some sort of game?
@tobiasstil1495
@tobiasstil1495 4 года назад
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
@nikolainyegaard
@nikolainyegaard 4 года назад
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?
@CodeWithChris
@CodeWithChris 4 года назад
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
@neoinBJ
@neoinBJ 2 года назад
as a CS teacher, i would always want to build some simulator or animation for teaching array, for loop or nested loop.
@CodeWithChris
@CodeWithChris 2 года назад
Go for it! - Pat
@martinkowollik1432
@martinkowollik1432 3 года назад
Thanks Chris. What about a simple game using peer to peer connectivity? Maybe tic tac toe?
@CodeWithChris
@CodeWithChris 3 года назад
Ok, thanks for your suggestion! :-) -Arthur
@williamstorey5024
@williamstorey5024 4 года назад
Swiftui MacOS app (Mayberry discussing the difference between iOS). checkbook.
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! It's added to the list. -Kat
@shobinja
@shobinja 4 года назад
Superb
@CodeWithChris
@CodeWithChris 4 года назад
Thank you for your support Shobin!
@张宇欣
@张宇欣 4 года назад
Hi Chris, I’m building a live streaming app with SwiftUI, I hope to learn the UI for watching live stream
@CodeWithChris
@CodeWithChris 4 года назад
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
@张宇欣
@张宇欣 4 года назад
@@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.
@mayaa6910
@mayaa6910 4 года назад
try a road crossing game for an app! just a quick suggestion!
@CodeWithChris
@CodeWithChris 4 года назад
Awesome! You can add these tutorial suggestions here: cwc.to/request - Kats
@mayaa6910
@mayaa6910 4 года назад
@@CodeWithChris ok cool!
@maryannadelman4438
@maryannadelman4438 Год назад
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?
@georgefang4130
@georgefang4130 4 года назад
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?
@CodeWithChris
@CodeWithChris 4 года назад
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
@stahmedpendragonguinevere2711
@stahmedpendragonguinevere2711 4 года назад
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?
@CodeWithChris
@CodeWithChris 4 года назад
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
@ctay3559
@ctay3559 4 года назад
Can you add a animation showing images flip x amount of times?
@CodeWithChris
@CodeWithChris 4 года назад
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
@mayaa6910
@mayaa6910 4 года назад
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!
@CodeWithChris
@CodeWithChris 4 года назад
You can just seach them here on RU-vid. Or browse our channel uploads! :) - Kat
@mayaa6910
@mayaa6910 4 года назад
@@CodeWithChris ok thanks! Ill check your channel because searching for particular video names are not for me!
@maxhn927
@maxhn927 4 года назад
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!
@CodeWithChris
@CodeWithChris 4 года назад
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
@aarna7128
@aarna7128 4 года назад
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!!!
@aarna7128
@aarna7128 4 года назад
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() } } }
@CodeWithChris
@CodeWithChris 4 года назад
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
@codealex5974
@codealex5974 4 года назад
Kind of a sticker app maybe!!
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! -Kat
@javakian1
@javakian1 4 года назад
How to add a beep tone when matching two and another beep tone when matching all three.
@CodeWithChris
@CodeWithChris 4 года назад
Hello, the idea should be the same and you can use the the AVFoundation no problem ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-1htq-c4kVdA.html - Francis
@rubengam3r
@rubengam3r 4 года назад
Idea for app: Navigation /API decoding
@CodeWithChris
@CodeWithChris 4 года назад
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
@joshteixeira6750
@joshteixeira6750 3 года назад
A tutorial on using Stripe and Firebase!
@CodeWithChris
@CodeWithChris 3 года назад
Thanks for dropping by! -Arthur
@Ismael46934
@Ismael46934 2 года назад
Thank you for the video
@CodeWithChris
@CodeWithChris 2 года назад
You are so welcome! -Arthur
@evandrucefilbert443
@evandrucefilbert443 3 года назад
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
@CodeWithChris
@CodeWithChris 3 года назад
Thanks for your suggestion! -Arthur
@litusfixe9629
@litusfixe9629 3 года назад
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
@litusfixe9629
@litusfixe9629 3 года назад
oh I just saw you already have this in other videos :// still cool Thanks!
@CodeWithChris
@CodeWithChris 3 года назад
Yay, awesome, Carles! Keep on having fun! :-) -Arthur
@KweenAhlem
@KweenAhlem 4 года назад
🙌
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for watching! 🙌 -Kat
@KweenAhlem
@KweenAhlem 4 года назад
@@CodeWithChris welcome you have done good job i wish if you can show some programming for easy game for beginners
@mykolamateichuk1382
@mykolamateichuk1382 4 года назад
liked it!
@CodeWithChris
@CodeWithChris 4 года назад
I'm glad! 🥳 - Kat
@melihozden4537
@melihozden4537 4 года назад
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)
@CodeWithChris
@CodeWithChris 4 года назад
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
@mohammedalmutawa6672
@mohammedalmutawa6672 4 года назад
I suggest any app that uses tableview
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! - Kat
@pitmanra
@pitmanra 4 года назад
How about something different: an app that creates generative art. Thanks.
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! I added it to our list. - Kat
@JoeyAltieri
@JoeyAltieri 4 года назад
make a video sharing app tutorial
@CodeWithChris
@CodeWithChris 4 года назад
Hi there, you can add your tutorial requests here: cwc.to/request - Kat
@BennieArnhart
@BennieArnhart Год назад
Isso é brilhante.
@mayaa6910
@mayaa6910 4 года назад
how do you open the symbol place where you get the star? I forgot! 0_o
@CodeWithChris
@CodeWithChris 4 года назад
Hello, this is a system icon that started in ios 13 called SFSymbols - Francis
@chickensugar5894
@chickensugar5894 4 года назад
Ideas for app: Alarm clock app! PLzzzzz
@CodeWithChris
@CodeWithChris 4 года назад
Cool! Thanks for the suggestion, it's noted! -Kat
@berkyurttas4064
@berkyurttas4064 4 года назад
Hi ! Ideas for app: - Instagram clone - Twitter clone
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestions! I'll add them to our list. -Kat
@schulcomputer
@schulcomputer 4 года назад
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?
@CodeWithChris
@CodeWithChris 4 года назад
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
@arulmaranraja2009
@arulmaranraja2009 4 года назад
:)
@CodeWithChris
@CodeWithChris 4 года назад
Add your tutorial requests for us here: cwc.to/request - Kat
@TheSherYang
@TheSherYang 10 месяцев назад
Was curious on how coding works. And damn, just had a huge migraine watching this. Everything is so confusing 🤯
@CodeWithChris
@CodeWithChris 10 месяцев назад
Hello, @TheSherYang! We apologize for the confusion! You may want to try our latest introductory video instead. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-K0t-RCSlasE.html Hope that helps! Thanks for taking the time to comment! --Joash
@mayaa6910
@mayaa6910 4 года назад
the assets link isn't working for me :(
@CodeWithChris
@CodeWithChris 4 года назад
Here are all of the resources: bit.ly/2AyuoOs bit.ly/31K9F5u bit.ly/3gtlSzB bit.ly/38qPdrl - Kat
@mayaa6910
@mayaa6910 4 года назад
@@CodeWithChris Thank you!
@timbojimbo6647
@timbojimbo6647 4 года назад
How about a weather app
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! I'll add it to our list. -Kat
@viewfinder1801
@viewfinder1801 4 года назад
What is he title of "the next video"?
@CodeWithChris
@CodeWithChris 4 года назад
Hello, do you mean the next lesson for this series? -Kat
@viewfinder1801
@viewfinder1801 4 года назад
@@CodeWithChris Yes. More importantly, what is the title of the video where you further develop the Slots app?
@カーマイケル-l2b
@カーマイケル-l2b 4 года назад
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😎
@CodeWithChris
@CodeWithChris 4 года назад
Cool! It's actually already on our list. Thanks for the suggestion! -Kat
@christinewang6484
@christinewang6484 3 года назад
Super cool!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@CodeWithChris
@CodeWithChris 3 года назад
You're cooler, Christine, always!
@cuestafrancisco
@cuestafrancisco 4 года назад
"Cannot preview in this file -- Slots.app may have crashed." anybody has been able to resolve this issue? thanks
@CodeWithChris
@CodeWithChris 4 года назад
Hello, Francisco! Our technical support staff can help you in our fourm. Post your question here: codecrew.codewithchris.com. All the best!
@phongtran92
@phongtran92 4 года назад
Please improve spining animation for this app
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! -Kat
@this5552
@this5552 4 года назад
Roulette app
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for this suggestion! I will add that to our list. :) - Kat
@BornMarc
@BornMarc 4 года назад
App tutorial idea: messenges / WhatsApp clone
@CodeWithChris
@CodeWithChris 4 года назад
Cool! Thanks for the suggestion! You can also send us your requests here: cwc.to/request - Kat
@shubhamkulthe3854
@shubhamkulthe3854 4 года назад
😍
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for watching!
@valid6983
@valid6983 4 года назад
Shop App
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! I'll add it to our list. -Kat
@judy8821
@judy8821 4 года назад
Match game
@CodeWithChris
@CodeWithChris 4 года назад
Thanks! It's already on our list. :) -Kat
@gauntletwielder6306
@gauntletwielder6306 4 года назад
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.
@CodeWithChris
@CodeWithChris 4 года назад
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
@qwerasdfhjkio
@qwerasdfhjkio 4 года назад
they talked about everything you mentioned in previous videos! :)
@joshuamatthew4696
@joshuamatthew4696 4 года назад
O yea build a logolizer
@CodeWithChris
@CodeWithChris 4 года назад
What's a logolizer??
@joshuamatthew4696
@joshuamatthew4696 4 года назад
CodeWithChris like used in custom T-shirt web sites ?
@darksideofjamaica1587
@darksideofjamaica1587 4 года назад
loan app
@CodeWithChris
@CodeWithChris 4 года назад
Thanks for the suggestion! I'll add it to our list. -Kat
@karankeraliya6771
@karankeraliya6771 4 года назад
First one to view and comment
@CodeWithChris
@CodeWithChris 4 года назад
Here you go: 🏅! @AdrienVillez
@karankeraliya6771
@karankeraliya6771 4 года назад
@@CodeWithChristhnk u sir
Далее
SwiftUI Data Flow and View Composition Tutorial
11:58
ADHD Is a Curse… Until You Learn This
17:34
Просмотров 328 тыс.
Ванька пошел!!!! 🥰
00:18
Просмотров 1,4 млн
Improving the SwiftUI Slots App
24:11
Просмотров 17 тыс.
The Complete Guide to NavigationView in SwiftUI
39:18
Просмотров 130 тыс.
Data Flow in a SwiftUI App
33:15
Просмотров 54 тыс.
The REAL Story of Kamala Harris
26:04
Просмотров 1,4 млн
SwiftUI - How to do Navigation in your Swift UI app
41:58
Bruce has suddenly passed away.
22:45
Просмотров 318 тыс.
Ванька пошел!!!! 🥰
00:18
Просмотров 1,4 млн