From b275295e8e0da79418f19adcc738c29f1a2f0f90 Mon Sep 17 00:00:00 2001 From: Martin Lasek Date: Fri, 27 Dec 2024 21:20:39 -0800 Subject: [PATCH] use dot-notation --- .../SwiftUI/iOS+Catalyst/WishlistView+iOS.swift | 12 ++++++------ .../SwiftUI/macOS/WishlistContainer+macOS.swift | 15 ++++++++------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Sources/WishKit/SwiftUI/iOS+Catalyst/WishlistView+iOS.swift b/Sources/WishKit/SwiftUI/iOS+Catalyst/WishlistView+iOS.swift index e5af8cf..ad041b7 100644 --- a/Sources/WishKit/SwiftUI/iOS+Catalyst/WishlistView+iOS.swift +++ b/Sources/WishKit/SwiftUI/iOS+Catalyst/WishlistView+iOS.swift @@ -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), ] } diff --git a/Sources/WishKit/SwiftUI/macOS/WishlistContainer+macOS.swift b/Sources/WishKit/SwiftUI/macOS/WishlistContainer+macOS.swift index 44e5f38..4eeb49c 100644 --- a/Sources/WishKit/SwiftUI/macOS/WishlistContainer+macOS.swift +++ b/Sources/WishKit/SwiftUI/macOS/WishlistContainer+macOS.swift @@ -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), ] } @@ -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) }