Skip to content

Commit

Permalink
use dot-notation
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Lasek committed Dec 28, 2024
1 parent fae60f6 commit b275295
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Sources/WishKit/SwiftUI/iOS+Catalyst/WishlistView+iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ struct WishlistViewIOS: View {

private var feedbackStateSelection: [LocalWishState] {
return [
LocalWishState.all,
LocalWishState.library(.pending),
LocalWishState.library(.inReview),
LocalWishState.library(.planned),
LocalWishState.library(.inProgress),
LocalWishState.library(.completed),
.all,
.library(.pending),
.library(.inReview),
.library(.planned),
.library(.inProgress),
.library(.completed),
]
}

Expand Down
15 changes: 8 additions & 7 deletions Sources/WishKit/SwiftUI/macOS/WishlistContainer+macOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ struct WishlistContainer: View {

private var feedbackStateSelection: [LocalWishState] {
return [
LocalWishState.all,
LocalWishState.library(.pending),
LocalWishState.library(.inReview),
LocalWishState.library(.planned),
LocalWishState.library(.inProgress),
LocalWishState.library(.completed),
.all,
.library(.pending),
.library(.inReview),
.library(.planned),
.library(.inProgress),
.library(.completed),
]
}

Expand Down Expand Up @@ -115,7 +115,8 @@ struct WishlistContainer: View {
if WishKit.config.buttons.segmentedControl.display == .show {
Picker("", selection: $selectedWishState) {
ForEach(feedbackStateSelection, id: \.self) { state in
Text("\(state.description) (\(getCountFor(state: state)))").tag(state)
Text("\(state.description) (\(getCountFor(state: state)))")
.tag(state)
}
}.frame(maxWidth: 150)
}
Expand Down

0 comments on commit b275295

Please sign in to comment.