Hi Bryan. Nice video. A few things: You can add two arrays together, so you don’t need to iterate over each photo to add them individually to the other array. When you using ForEach, you only need to pass in the id: when your type does not conform with identifiable. Since your object conforms to it, you can skip it. URL is actually a Codable type, so you can use it in your models and JSONDecoder will happily give you URLs when parsing. This would prevent you from creating the URLs manually at 18:13ish.
Excellent tutorial Brian. Yes, I would like to see more tutorials about apps that work on iPhone, iPad and Mac.It is more compelling to load ContentView() or ImageGridView() in the main content area on iPad from outset rather than display text telling the user to select List or Grid from the sidebar. Keep up the great work. You are a very good teacher.
I have followed your channel for awhile! Love the tutorials you are having!! I’m a iOS beginner and I found the video is pretty informative! Keep on the great work!!!💪👍
Very nice video, and the explanation is very cool As usual, distinct lessons and I hope to see advanced lessons on RUclips or Udemy with additional technologies such as iCloud. Big Thank 🥰
In 'Model.swift' I had to set 'var alt_description: String?' as optional since some photos don't have a description; it wasn't loading the json data until I added the '?'
Hi, how to make "List" option in sidebar (video time: 41:56) selected by default without clicking? I can't find solution for this task. This is possible?
So, this tutorial works only on Xcode 12? I've tried this tutorial on my pc but, at the : let json = try JSONDecoder().decode([Photo].self, from: dates) for photo in json { print("Photo is: \(photo)") self.photoArray.append(photo) } Got an error, This is error: typeMismatch(Swift.Array, Swift.DecodingError.Context(codingPath: [], debugDescription: "Expected to decode Array but found a dictionary instead.", underlyingError: nil)) Can you help, please?
Hi Bryan. Nice video. A few things:
You can add two arrays together, so you don’t need to iterate over each photo to add them individually to the other array.
When you using ForEach, you only need to pass in the id: when your type does not conform with identifiable. Since your object conforms to it, you can skip it.
URL is actually a Codable type, so you can use it in your models and JSONDecoder will happily give you URLs when parsing. This would prevent you from creating the URLs manually at 18:13ish.
Good one, as always detailed tutorial. We will wait for new tutorials about iOS & macOS hybrid apps :)
I like how you took your time to release this ...your tutorials are always stunning ...a big fan/student of your tutorials
Thank you so much!
Excellent tutorial Brian. Yes, I would like to see more tutorials about apps that work on iPhone, iPad and Mac.It is more compelling to load ContentView() or ImageGridView() in the main content area on iPad from outset rather than display text telling the user to select List or Grid from the sidebar. Keep up the great work. You are a very good teacher.
I wish I could give multiple thumbs up for this great tutorial!.
I have followed your channel for awhile! Love the tutorials you are having!! I’m a iOS beginner and I found the video is pretty informative! Keep on the great work!!!💪👍
Thank you Brian for Amazing lessons....
Finally Got this , im searching lot for using api
No words to thank you 😊
Very nice video, and the explanation is very cool
As usual, distinct lessons and I hope to see advanced lessons on RUclips or Udemy
with additional technologies such as iCloud.
Big Thank 🥰
In 'Model.swift' I had to set 'var alt_description: String?' as optional since some photos don't have a description; it wasn't loading the json data until I added the '?'
Will you update the course to iOS 14?
+1
Hi, how to make "List" option in sidebar (video time: 41:56) selected by default without clicking? I can't find solution for this task. This is possible?
Hi, teach me to get 5000 request from unspalsh API, I saw unspalsh API documentation, I couldn't do it because there are different conditions
So, this tutorial works only on Xcode 12?
I've tried this tutorial on my pc but, at the :
let json = try JSONDecoder().decode([Photo].self, from: dates)
for photo in json {
print("Photo is: \(photo)")
self.photoArray.append(photo)
}
Got an error,
This is error: typeMismatch(Swift.Array, Swift.DecodingError.Context(codingPath: [], debugDescription: "Expected to decode Array but found a dictionary instead.", underlyingError: nil))
Can you help, please?
I don't know why, but I don't think I'll ever use SwiftUI.