Skip to content

Commit

Permalink
replace List to ScrollView
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSmart00 committed Jun 29, 2024
1 parent 902383f commit 916961d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions app-ios/Sources/StaffFeature/StaffView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ public struct StaffView: View {
}

public var body: some View {
List(store.list) { data in
Button(action: {
// TODO: present GitHub profile page
}, label: {
StaffLabel(name: data.name, icon: data.icon)
})
.listRowSeparator(.hidden)
ScrollView {
LazyVStack {
ForEach(store.list, id: \.id) { staff in
Button {

} label: {
StaffLabel(name: staff.name, icon: staff.icon)
}
}
}
.padding(16)
}
.listStyle(PlainListStyle())
.onAppear {
store.send(.onAppear)
}
Expand Down

0 comments on commit 916961d

Please sign in to comment.