diff --git a/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift b/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift index a09c6dd88..ad74576c6 100644 --- a/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift @@ -363,6 +363,8 @@ playbackRateButton(rate: 1.0, title: "1.0×", selected: audioController.playbackRate == 1.0) playbackRateButton(rate: 1.1, title: "1.1×", selected: audioController.playbackRate == 1.1) playbackRateButton(rate: 1.2, title: "1.2×", selected: audioController.playbackRate == 1.2) + playbackRateButton(rate: 1.2, title: "1.2×", selected: audioController.playbackRate == 1.3) + playbackRateButton(rate: 1.2, title: "1.2×", selected: audioController.playbackRate == 1.4) playbackRateButton(rate: 1.5, title: "1.5×", selected: audioController.playbackRate == 1.5) playbackRateButton(rate: 1.7, title: "1.7×", selected: audioController.playbackRate == 1.7) playbackRateButton(rate: 2.0, title: "2.0×", selected: audioController.playbackRate == 2.0) diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift index d6b16d333..d6de5c14c 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift @@ -204,7 +204,7 @@ struct ProfileView: View { ) } - Section(footer: Text(viewModel.appVersionString)) { + Section(footer: Text(viewModel.appVersionString + " - \(dataService.appEnvironment.name)")) { NavigationLink( destination: ManageAccountView() ) { diff --git a/apple/OmnivoreKit/Sources/Models/AppEnvironment.swift b/apple/OmnivoreKit/Sources/Models/AppEnvironment.swift index b57f6bf81..b33056036 100644 --- a/apple/OmnivoreKit/Sources/Models/AppEnvironment.swift +++ b/apple/OmnivoreKit/Sources/Models/AppEnvironment.swift @@ -69,6 +69,21 @@ public extension AppEnvironment { "\(serverBaseURL.absoluteString)/api/graphql" } + var name: String { + switch self { + case .demo: + return "Demo" + case .prod: + return "Production" + case .test: + return "Test" + case .local: + return "Local" + case .custom: + return "Self hosted" + } + } + var serverBaseURL: URL { switch self { case .demo: