-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from wishkit/new-states
New states
- Loading branch information
Showing
11 changed files
with
256 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// SegmentedView.swift | ||
// wishkit-ios | ||
// | ||
// Created by Martin Lasek on 9/15/23. | ||
// Copyright © 2023 Martin Lasek. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
import WishKitShared | ||
|
||
extension WishState: Identifiable { | ||
public var id: Self { self } | ||
|
||
public var description: String { | ||
switch self { | ||
case .approved: | ||
WishKit.config.localization.approved | ||
case .implemented: | ||
WishKit.config.localization.implemented | ||
case .pending: | ||
WishKit.config.localization.pending | ||
case .inReview: | ||
WishKit.config.localization.inReview | ||
case .planned: | ||
WishKit.config.localization.planned | ||
case .inProgress: | ||
WishKit.config.localization.inProgress | ||
case .completed: | ||
WishKit.config.localization.completed | ||
default: | ||
"Not Supported" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.