-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix focus in tutorial #3072
Fix focus in tutorial #3072
Changes from all commits
e51dee0
bcf06b9
e61b84a
0c67f8d
5f35f35
e78dc7a
786ee7e
efb80ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ struct SyncUpForm { | |
case .binding: | ||
return .none | ||
|
||
case let .onDeleteAttendees(indexSet): | ||
state.syncUp.attendees.remove(atOffsets: indexSet) | ||
case let .onDeleteAttendees(indices): | ||
state.syncUp.attendees.remove(atOffsets: indices) | ||
Comment on lines
-24
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. settling on |
||
if state.syncUp.attendees.isEmpty { | ||
state.syncUp.attendees.append( | ||
Attendee(id: Attendee.ID()) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import SwiftUI | |
@Reducer | ||
struct SyncUpDetail { | ||
@ObservableState | ||
struct State { | ||
struct State: Equatable { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. at the beginning of the tutorial we already set the state that we will be marking all |
||
@Shared var syncUp: SyncUp | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,7 @@ struct SyncUpDetailView: View { | |
.frame(maxWidth: .infinity) | ||
} | ||
} | ||
.navigationTitle(Text(store.syncUp.title)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. forgot to add a title to the detail screen, so doing that in a bunch of places. |
||
.toolbar { | ||
Button("Edit") { | ||
store.send(.editButtonTapped) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's just drop the tagged digression. it's causing too much confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It helped me to re-discover tagged again. I agree - it can be confusing for junior devs, but it's a pity.