Update the Color Theme | SwiftUI Crypto App #26

  Рет қаралды 6,632

Swiftful Thinking

Swiftful Thinking

Күн бұрын

In this video we will ensure we set up our color theme correctly and then review how we can change it with just a few lines of code!
*** LINKS:
Downloadable Resources: www.swiftful-t...
CoinGecko API: www.coingecko....
CoinModel API: api.coingecko....
Market Data API: api.coingecko....
Coin Detail API: api.coingecko....
Buy Me A Coffee: www.buymeacoff...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-t...
DISCORD: / discord
GITHUB: github.com/Swi...
SAY THANKS: www.buymeacoff...

Пікірлер: 38
@KimbrellBrad
@KimbrellBrad 3 жыл бұрын
Such an unbelievable amount of work you put into this project Nick! I will promise that I will spread the word about your channel to all of my contacts. You deserve to have tens of thousands of followers with your great teaching style and professional level of coding in Swift/SwiftUI! Kudos sir!
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Thank you Brad! :)))
@varcos
@varcos 2 жыл бұрын
Thanks again, Nick, for this MASTERFUL course! For anyone struggling with SwiftUI 2.0 having issues with the list background not working correctly for the areas outside of the list data, I added this to the ZStack of the SettingsView(), directly inside the NavigationView (it'll work if you put it on the Navigation View as well): ``` .onAppear { UITableView.appearance().backgroundColor = .clear } ``` Then, you have to put the Opacity on your main `Color.theme.background.opacity(0.8).ignoreSafeArea()` and then remove the `opacity(0.5)` from the List elements. Hope that helps someone else out!
@ggiaret
@ggiaret Жыл бұрын
the best, clear and enthusiastic teacher. Thank you
@sols.2525
@sols.2525 3 жыл бұрын
Thanks so much Nick. This course was awesome. The app is so professional. Thank you for not doing just another twitter clone.
@cinquain0
@cinquain0 2 жыл бұрын
Course wasn't long enough... I enjoyed it!
@forys6163
@forys6163 Жыл бұрын
Learned a lot from these great series of video as a new learner of iOS development!
@TF242
@TF242 2 жыл бұрын
Thanks Nick this was great!
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Glad you enjoyed it!
@mig12394
@mig12394 3 жыл бұрын
Thanks a lot for this awesome course, I think you should have more subscribers
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Haha Michel, as long as I still have you, I'm happy :)
@nacohenMD
@nacohenMD 2 жыл бұрын
XCode 13 indicated in the release notes that colorLiteral was not rendered as a known issue. This is still the case in XCode 13.2. This affects allowing the creation of second theme using Color(#colorLiteral) as seen at around the 13:30 mark of the video.
@BrettHoTep
@BrettHoTep 2 жыл бұрын
This whole course has been really educational! 👍 I have experienced a problem though here where setting the listRowBackground color with opacity to 50% just does not want to change the color of the rows in the settings view as you demonstrated in this video. Anyway not such a big deal, I could likely get around it by creating a new different listRowColor.
@samarghourab5545
@samarghourab5545 2 жыл бұрын
I had the same problem. I set the opacity on the Color.them.background.opacity(0.5).ignoresSafeArea() and removed the opacity on all 4 listRowBackground(Color.theme.background). That way, I imagine, you would have a darker layer on lighter layer so each row can now stand out.
@SysAdminPgh
@SysAdminPgh Жыл бұрын
Has something changed with version 16 with backgrounds? At 10.21 on the SettingsView I can't get the background to change at all.
@jcraggie
@jcraggie Жыл бұрын
I am having the same issue. After a few hours of trying different things, I'm leaving it as-is for now.
@notorioustofu3482
@notorioustofu3482 Ай бұрын
On the List in the ZStack List { ... } .scrollContentBackground(.hidden)
@ВладимирВасиленко-с6ц
@ВладимирВасиленко-с6ц 2 жыл бұрын
Thanks a lot!
@gnosis2010i
@gnosis2010i 2 жыл бұрын
This video was very helpful, thank you What would the code look like if I implemented color switching within app?
@StephLam233
@StephLam233 2 жыл бұрын
This is the most awesome and professional course I have ever learned! Thank you so much Nick! BTW, is there any suggestion to learn skills about AVKit or media device something... I have to develop some kind of online video chat app and I have no idea how to start...
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Thanks for the comment! And no, I haven't covered AVKit yet 😭
@StephLam233
@StephLam233 2 жыл бұрын
@@SwiftfulThinking Thanks for your reply Nick!Maybe we can find AVKit video in your future playlist ^^ and I'm now going to learn your awesome master course!
@cruiseqe2
@cruiseqe2 3 жыл бұрын
Great series. App looks great, and very sad that the series has now come to an end - apart from your recap. However, have I missed something? When you make changes to the HomeView file (at 5:10 in the video), I notice that you have 2 variables 'coinSelectionUsingTransitions' and 'coinSelectionUsingOffsets' that aren't in my code. I have re-watched yesterday's video, and they don't show up in there. Can anybody throw some light on these 2 variables. Fortunately they don't affect the changes that have to made in this current video.
@sols.2525
@sols.2525 3 жыл бұрын
Nice catch. I didn't see it. My assumption would be that Nick has made this app several times to set up this video series and either used a different version or forgot to add in the code clean up for that part. It looks to me like Nick just extracted the ZStack with the if statements out of the body into functions just to make the body cleaner but didn't show us that part.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
You guys caught me hahaha. I had planned a few extra videos where we were going to customize some animations more, but they ended up introducing some bugs.. which led to more videos.. which I ended up not including. It's awesome that you guys catch these things lol Someone's paying attention!
@30guarino
@30guarino 3 жыл бұрын
Awesome videos!..... I liked how you checked the color to see if they're applying to the app.....I was just wondering in our Settings View would it be user friendly to add a ToggleSwitch and then just make a Bool variable to the different Struct of Color Literals for Light and one for Dark mode instead of doing the Assets ??
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Yea you definitely can. We would then have to customize the views to also know to update when switching between modes. There are a few different ways I've seen color scheme's implemented, but I find this is the most reliable for me.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
I think changing the color scheme while the app is running is a common feature in online courses and tutorials, but in practice, very few apps have this. Most apps support Light and Dark mode, but it's usually based on the iPhone's global setting.
@disclosure4603
@disclosure4603 3 жыл бұрын
hey nick, i realised that if in the settings of your iphone, language and region is set to a country where the price is in euro, the price will be displayed whith the icon € and not with the icon $, is there a way to avoid that ?
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
You should be able to customize the currency in with the currency formatter we made!
@kumaranand7556
@kumaranand7556 3 жыл бұрын
BCTR - Ready for Takeoff
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Waiting for takeoff!
@DaveJacobseniOS
@DaveJacobseniOS 3 жыл бұрын
Anyone reading this comment best go buy Nick some coffee in the link in the description ☕️ ​🙏
@ydungkuan-faidhcm6962
@ydungkuan-faidhcm6962 3 жыл бұрын
What this name chart
Final review of the SwiftUI Crypto App | SwiftUI Crypto App #27
10:05
Swiftful Thinking
Рет қаралды 9 М.
App Icon, Launch Screen, and Launch Animation | SwiftUI Crypto App #24
31:57
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 21 МЛН
SwiftUI Tutorial: Dark Mode, Colors, Environment
9:03
Logan Koshenka
Рет қаралды 2,3 М.
Create a view to manager current user's portfolio | SwiftUI Crypto App #14
39:27
Setting up Xcode Project and a custom color theme | SwiftUI Crypto App #1
17:24
Switching Themes in SwiftUI
19:30
Stewart Lynch
Рет қаралды 4,8 М.
Play: The Secret Weapon for iOS Devs & Designers
10:12
Sean Allen
Рет қаралды 36 М.
NEW Jaguar revealed. FINALLY!
8:06
carwow
Рет қаралды 601 М.
Design a row to display coins in a List | SwiftUI Crypto App #4
34:24
Swiftful Thinking
Рет қаралды 21 М.
How to use @ViewBuilder in SwiftUI | Advanced Learning #9
24:01
Swiftful Thinking
Рет қаралды 27 М.
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 21 МЛН