Reload the List with updated data from API | SwiftUI Crypto App #16

  Рет қаралды 9,727

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Пікірлер: 29
@TF242
@TF242 2 жыл бұрын
Great video as usual Nick! The pull down functionality is now available by adding .refreshable { print("do your magic!") } to the List.
@oldschool84
@oldschool84 6 ай бұрын
So far I've somehow managed to keep up and follow, but now I think my brain is going to explode :)
@iaincaldwell4445
@iaincaldwell4445 2 жыл бұрын
Great series Nick, really learning a lot about how to structure a modern iOS app. Incidently, in iOS 15 there is now a .refreshable() modifier for List which enables pull to refresh!!!!
@Benbbr
@Benbbr 3 жыл бұрын
Coming together very smoothly. With all the iOS updates the next courses are gonna shorter I recon. Super excited for the rest. Can't thank you enough.
@Benbbr
@Benbbr 3 жыл бұрын
Running into an issue though. EU region decimalPad displays an comma (,) iso a dot (.), which in turn does not generate the SAVE button. Have not figure out the most elegant solution yet.
@GuillemBruix
@GuillemBruix 3 жыл бұрын
@@Benbbr I have the same issue here. I'm trying to find a solution too. Btw, great tutorial Nick!
@Benbbr
@Benbbr 3 жыл бұрын
@@GuillemBruix There is a solution i found on github. Not sure how to implement it correctly at this moment. Used the .default keyboard for now. I’ll have a look after we finished this awesome project.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Ahhh sorry guys! I'm in the US and didn't check this. Let me know if you find a solution haha
@Benbbr
@Benbbr 3 жыл бұрын
@@SwiftfulThinking So far I've been trying small solutions within the extensions String and Double. Without any success. I think the 'pro' solution would be a picker in the info view where you would get to choose your preferred currency. This would need to be used to get the correct URL, and display all currencies correct. The forcing device region to US (in app) is not an option as far as I understand. And although I have not ventured the last 2 options yet, I would love an extension on the course to hear your ideas.
@Nick-gj9gz
@Nick-gj9gz 3 жыл бұрын
I remember WWDC2021 mentioned this new feature! It now seems to be a modifier of List
@granito84
@granito84 3 жыл бұрын
Nick, great tutorial! I noticed you can get a divide by zero error if the previousValue is 0. I added a check that portfolioCoins is not empty in mapGlobalMarketData func.
@CtheK
@CtheK 2 жыл бұрын
Could you please share your solution with us here?
@sols.2525
@sols.2525 3 жыл бұрын
Sweet, I was hoping you would take advantage and make some videos of the new SwiftUI features coming. Not too many streamers will be on top of that. (Referencing the comment about the up coming bootcamp.)
@leikolaboeproduction5785
@leikolaboeproduction5785 3 жыл бұрын
Excellent work!
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Thank you Leiko Laboe!
@msmhshs
@msmhshs Жыл бұрын
somehow shows an error at the portfolioValue by a warning as "Invalid redeclaration of "portfolioValue" and cannot figure out what it does mean.
@paulmax9155
@paulmax9155 Жыл бұрын
Unfortunately, this tutorial doesn't mention the limit of HTTP requests, because if you use the reload button frequently, you will get HTTP error 429 (too many requests). This is a BUG of a new feature. (Reload Button)
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
😭😭😭
@disclosure4603
@disclosure4603 3 жыл бұрын
thanks nick for this tutorial, it would be awesome if you can create a discord channel
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Haha I don't think I have enough subs for that lol
@Julio-cu2hd
@Julio-cu2hd 3 жыл бұрын
If you are reading this, please leave a like, many views and not so many likes, mmm.. creating this content takes time and effort, all of us came here looking for knowledge, learn to be thankful as well ;)
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Very much appreciated Julio. Thanks!
@miljanangelovik1712
@miljanangelovik1712 2 жыл бұрын
One suggestion: - Mapping for currentHoldingsValue can be even more shorter with keypath: let portfolioValue = portfolioCoins.map(\.currentHoldingsValue) btw: this course is awesome
Sorting List data with MVVM and animations | SwiftUI Crypto App #17
26:33
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 132 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 8 МЛН
How to use Refreshable modifier in SwiftUI | Swift Concurrency #15
7:59
Swiftful Thinking
Рет қаралды 7 М.
Download JSON from API in Swift with Combine | Continued Learning #23
34:43
My Favorite SwiftUI Updates in iOS 18
4:31
Sean Allen
Рет қаралды 18 М.
Create a view to manager current user's portfolio | SwiftUI Crypto App #14
39:27
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 908 М.
How to use Actors and non-isolated in Swift  | Swift Concurrency #9
29:31
Swiftful Thinking
Рет қаралды 21 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 57 МЛН
SwiftUI Data Flow in iOS 17 - Observation & @Observable
7:57
Sean Allen
Рет қаралды 56 М.
Cloud Firestore Pricing | Get to know Cloud Firestore #3
16:23
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 132 МЛН