Skip to content

Commit

Permalink
feat: Add state and binding tutorial link to UI development README
Browse files Browse the repository at this point in the history
  • Loading branch information
yostane committed Jun 27, 2024
1 parent 0c99d42 commit cfe6bc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/src/ui-development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ Please cover these tutorials to get a good grasp of SwiftUI.
- Basic layout
- [Creating and combining views](https://developer.apple.com/tutorials/swiftui/creating-and-combining-views) (40 min)
- [Building lists and navigation](https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation) (35 min)
- State and binding
- [Handling user input](https://developer.apple.com/tutorials/swiftui/handling-user-input) (20 min)
- Animations and complex layouts
- [Animating views and transitions](https://developer.apple.com/tutorials/swiftui/animating-views-and-transitions) (20 min)
Expand Down
4 changes: 2 additions & 2 deletions samples/iOS-training-url-session.swiftpm/ApiModels.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
struct Response: Codable {
var results: [Result]
var results: [Track]
}

struct Result: Codable, Equatable {
struct Track: Codable, Equatable {
var trackId: Int
var trackName: String
var collectionName: String
Expand Down
2 changes: 1 addition & 1 deletion samples/iOS-training-url-session.swiftpm/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SwiftUI
enum ContentViewState: Equatable {
case loading
case fail(String)
case sucess([Result])
case sucess([Track])
}

struct ContentView: View {
Expand Down

0 comments on commit cfe6bc0

Please sign in to comment.