Thanks for sharing! Awesome tutorial. I used that with the OpenWeatherMap API and had to remove the [ ] brackets at let posts = try! JSONDecoder().decode([POST].self, from: data!) --> let weatherData = try! JSONDecoder().decode(WeatherData.self, from: data!). With the [ ] brackets, I got an error describing that the decoder wanted to decode an array but received a dictionary. Without the [ ] brackets, my code is running.
OMG THANK YOU. Best tutorial ever. Was struggling all day to get my api to return data to a List. You are a brilliant teacher and I love the way you make your code simple enough for a SwiftUI newbie to understand! Thank you a million times!
Sorry to be offtopic but does anyone know of a tool to get back into an Instagram account?? I stupidly forgot my account password. I love any assistance you can give me.
@Ryder Nikolas I really appreciate your reply. I got to the site thru google and im trying it out now. Takes a while so I will get back to you later with my results.
Hey Meng, really nice tutorial. I’m learning SwiftUI, built an app with static cards and now will use this knowledge in practice and make cards load from API. Thanks a lot for your videos!
Hey, i want to add new items to api. I can do that with offline storage but what about online ? I can use firebase but i want to make my own database, fetch api and add new ones. Any suggestions ?
Hello, in my case i need the list of posts in 5 different view, how do i store the data i got from the url in a list which i can use in several views. Or should i just save it every time i get it with onappear. Please help
I am using exactly your code and getting this error: 2021-01-17 16:52:13.697259+0100 XYZ[14020:4668295] Fatal error: 'try!' expression unexpectedly raised an error: Swift.DecodingError.typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)): file XYZ/ContentView.swift, line 24 What is the problem?
Xcode 13.1 Hey, I tried to write a struct to decode JSON text, I also use 'let id = UUID()', why Xcode warned "Immutable property will not be decoded because it is declared with an initial value which cannot be overwritten. Make the property mutable instead", I do not know how to solute this warning. But really let is right, If I use var, I must make sure there is an "id" field in JSON text and I do not set the "id" field.
7:55 the “[Post].self” is tripping me up, what does it mean to have a “.self” on the end (suffix)? (I know “self.” (Prefix) which points to the class itself)
Hello. Can you do a video about GET or POST request to an API that the server require Basic Auth in Swift 5. There is some info about a delegate implement authentication challenge but is not clear. Thank you in advance.
Hi dude, I buy your course which look very nice, but I have to check my mail every Time I need to sign In with the Magic link system 😥...that means I can’t watch courses on my IPad cause it not synchronize with my mail box...how can I handle that?
How do I implement a search bar where the result in the list are entries (which if selected, display additional information) from the API. For context, I am trying to create an app witch utilizes a dictionary API.
. I'm trying to build an app that searches through the web (Using web scraping) and returns the specified data instantly (data can be updated on the website and I want it to be updated in my app as well), can that be done with JSON?
Swift UI handle api call using combine framework. This is similar like doing old way. Would be nice if it was more declarative syntax than static functions.
@DesignCode Why am i getting an error i "let id=UUID()" ? i have to change it to var id=UUID() instead... MAKE THE PROPERTY MUTABLE INSTEAD! How come yours doesnt error out?
Do you have a paid course for teaching SwiftUI + MySQL (read, write, update). I have web app and MySQL database on GoDaddy and want to connect to MySQL from IOS as well.
Hey i have windows machine and i want to use sketch can you tell me how to install the virtual mac os in windows and where to download the macos zip. I am having only ipad
My app is crashing even after copying exactly the same code. Don't know where the error is
I just tried without any compile or runtime issue.
Thanks for sharing! Awesome tutorial. I used that with the OpenWeatherMap API and had to remove the [ ] brackets at let posts = try! JSONDecoder().decode([POST].self, from: data!) --> let weatherData = try! JSONDecoder().decode(WeatherData.self, from: data!). With the [ ] brackets, I got an error describing that the decoder wanted to decode an array but received a dictionary. Without the [ ] brackets, my code is running.
OMG THANK YOU. Best tutorial ever. Was struggling all day to get my api to return data to a List. You are a brilliant teacher and I love the way you make your code simple enough for a SwiftUI newbie to understand! Thank you a million times!
jeeves251 thank you, that means a lot!
Sorry to be offtopic but does anyone know of a tool to get back into an Instagram account??
I stupidly forgot my account password. I love any assistance you can give me.
@Raiden Franco Instablaster :)
@Ryder Nikolas I really appreciate your reply. I got to the site thru google and im trying it out now.
Takes a while so I will get back to you later with my results.
@Ryder Nikolas it did the trick and I now got access to my account again. I'm so happy:D
Thanks so much you saved my account!
Best tutorial! You literally explained everything one needs in 15 minutes, which could be understood after hours of fail!
Hey Meng, really nice tutorial. I’m learning SwiftUI, built an app with static cards and now will use this knowledge in practice and make cards load from API. Thanks a lot for your videos!
I got crash every time. Why?
i had to change my id from =UUID() to an int to stop errors
So clear and concise. I have watched so many of videos on this topic and by far yours is the best!
Awesome, I was trying to do it for hours. Thank you very much for this brilliant video!
Liking, subscribing, learning
This is the best Jason explanation on the internet. Thank you for a world class video…bob
Muchas gracias por tus vídeos. Estoy aprendiendo por puro placer. Me he atrancado en los últimos segundos. List (0..
Hey, i want to add new items to api. I can do that with offline storage but what about online ? I can use firebase but i want to make my own database, fetch api and add new ones. Any suggestions ?
Dear DesignCode! I really like the music that plays on the background of your videos! Always wanted to ask, who is the composer?
Hello, in my case i need the list of posts in 5 different view, how do i store the data i got from the url in a list which i can use in several views. Or should i just save it every time i get it with onappear. Please help
Do you have a similar video like this using UIKit ?
Bro you are incredible. TYSM
I am using exactly your code and getting this error:
2021-01-17 16:52:13.697259+0100 XYZ[14020:4668295] Fatal error: 'try!' expression unexpectedly raised an error: Swift.DecodingError.typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)): file XYZ/ContentView.swift, line 24
What is the problem?
Thanks...that's a lot clear to me on SwiftUI and APIs session
Can I use the same structure that you've made it for APIs like The movie db?
Yes probably as long as it's using a REST API with JSON data.
Great video, how do I get the next part?
thank you so much. I have been trying to understand this for weeks, and you have explained it so much more clearly than anyone else!
I've been looking for a well done tutorial for days. Thanks!
Glad I could help!
Xcode 13.1
Hey, I tried to write a struct to decode JSON text, I also use 'let id = UUID()', why Xcode warned "Immutable property will not be decoded because it is declared with an initial value which cannot be overwritten. Make the property mutable instead", I do not know how to solute this warning.
But really let is right, If I use var, I must make sure there is an "id" field in JSON text and I do not set the "id" field.
Hi, can you try with
let id: String
instead? Because the API already returns an ID, so you can take the ID from the API instead of assigning a UUID.
ya I ge this same error and the code doesn't shoot out any output like what happens at the 9:45 mark of this video
Where's the next video?
7:55 the “[Post].self” is tripping me up, what does it mean to have a “.self” on the end (suffix)? (I know “self.” (Prefix) which points to the class itself)
Hello. Can you do a video about GET or POST request to an API that the server require Basic Auth in Swift 5. There is some info about a delegate implement authentication challenge but is not clear. Thank you in advance.
Hi dude, I buy your course which look very nice, but I have to check my mail every Time I need to sign In with the Magic link system 😥...that means I can’t watch courses on my IPad cause it not synchronize with my mail box...how can I handle that?
Thank you so much!
How do I implement a search bar where the result in the list are entries (which if selected, display additional information) from the API. For context, I am trying to create an app witch utilizes a dictionary API.
.
I'm trying to build an app that searches through the web (Using web scraping) and returns the specified data instantly (data can be updated on the website and I want it to be updated in my app as well), can that be done with JSON?
Swift UI handle api call using combine framework. This is similar like doing old way. Would be nice if it was more declarative syntax than static functions.
This is literally ten best tutorial on yt. With a bit of adapting its suitable for every usage. Thanks man
Have you made the combine video yet and I’m just not seeing it? Or is that a video you’re working on?
I don't speak English and still I understood perfectly
not working for me it runs and crash at line 22 of data.swift file please help me.
@DesignCode Why am i getting an error i "let id=UUID()" ? i have to change it to var id=UUID() instead... MAKE THE PROPERTY MUTABLE INSTEAD! How come yours doesnt error out?
let id: UUID
I get "Preview Crashed" whenever I try to load it
Do you have a paid course for teaching SwiftUI + MySQL (read, write, update). I have web app and MySQL database on GoDaddy and want to connect to MySQL from IOS as well.
Make an api on the server at godaddy which serves up json and it should work with this
Yeaasssss About time, I can throw my spaghetti code in the garbage and finally move forward. Great tutorial
anyone has an issue that the List empty and I check my debugging area the data load fine
is that same for storyboard?
Very well done. Thank you for this video.
Hey i have windows machine and i want to use sketch can you tell me how to install the virtual mac os in windows and where to download the macos zip. I am having only ipad
Thank you!!!!!! Your video filled the missing pieces I needed.
perrrrrrrrrrrrrfffffffeeeeeect! thanks
nice tutorial..Thank You!!!!!
Can I use this same function to display geojson data on a map?
is the next part is already up here?
beautifully explained, thank you
Beautiful and clean
Where is next session?
Very cool and interesting tutorial, man)
You are the best
Great tutorial!
Amazing. Thanks.
omg man! thx!
Is the follow up to this video on UA-cam?
The rest of the videos are in my swiftui course: designcode.io/swiftui