Skip to content

Commit b275295

Browse files
author
Martin Lasek
committed
use dot-notation
1 parent fae60f6 commit b275295

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Sources/WishKit/SwiftUI/iOS+Catalyst/WishlistView+iOS.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ struct WishlistViewIOS: View {
8888

8989
private var feedbackStateSelection: [LocalWishState] {
9090
return [
91-
LocalWishState.all,
92-
LocalWishState.library(.pending),
93-
LocalWishState.library(.inReview),
94-
LocalWishState.library(.planned),
95-
LocalWishState.library(.inProgress),
96-
LocalWishState.library(.completed),
91+
.all,
92+
.library(.pending),
93+
.library(.inReview),
94+
.library(.planned),
95+
.library(.inProgress),
96+
.library(.completed),
9797
]
9898
}
9999

Sources/WishKit/SwiftUI/macOS/WishlistContainer+macOS.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ struct WishlistContainer: View {
7878

7979
private var feedbackStateSelection: [LocalWishState] {
8080
return [
81-
LocalWishState.all,
82-
LocalWishState.library(.pending),
83-
LocalWishState.library(.inReview),
84-
LocalWishState.library(.planned),
85-
LocalWishState.library(.inProgress),
86-
LocalWishState.library(.completed),
81+
.all,
82+
.library(.pending),
83+
.library(.inReview),
84+
.library(.planned),
85+
.library(.inProgress),
86+
.library(.completed),
8787
]
8888
}
8989

@@ -115,7 +115,8 @@ struct WishlistContainer: View {
115115
if WishKit.config.buttons.segmentedControl.display == .show {
116116
Picker("", selection: $selectedWishState) {
117117
ForEach(feedbackStateSelection, id: \.self) { state in
118-
Text("\(state.description) (\(getCountFor(state: state)))").tag(state)
118+
Text("\(state.description) (\(getCountFor(state: state)))")
119+
.tag(state)
119120
}
120121
}.frame(maxWidth: 150)
121122
}

0 commit comments

Comments
 (0)