simplify CustomPicker and fix ios18 runtime error
This fixes a reflection runtime error for our custom picker Fixes: https://github.com/damus-io/damus/issues/2332 Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -434,10 +434,10 @@ struct ProfileView: View {
|
||||
aboutSection
|
||||
|
||||
VStack(spacing: 0) {
|
||||
CustomPicker(selection: $filter_state, content: {
|
||||
Text("Notes", comment: "Label for filter for seeing only your notes (instead of notes and replies).").tag(FilterState.posts)
|
||||
Text("Notes & Replies", comment: "Label for filter for seeing your notes and replies (instead of only your notes).").tag(FilterState.posts_and_replies)
|
||||
})
|
||||
CustomPicker(tabs: [
|
||||
("Notes", FilterState.posts),
|
||||
("Notes & Replies", FilterState.posts_and_replies)
|
||||
], selection: $filter_state)
|
||||
Divider()
|
||||
.frame(height: 1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user