mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Improve iPad layout. Add separate debug configuration.
This commit is contained in:
@@ -63,12 +63,12 @@ enum AnalyticsPromptType {
|
||||
|
||||
extension AnalyticsPromptType {
|
||||
/// The main description string that should be displayed.
|
||||
var description: String {
|
||||
var message: String {
|
||||
switch self {
|
||||
case .newUser:
|
||||
return VectorL10n.analyticsPromptDescriptionNewUser
|
||||
return VectorL10n.analyticsPromptMessageNewUser
|
||||
case .upgrade:
|
||||
return VectorL10n.analyticsPromptDescriptionUpgrade
|
||||
return VectorL10n.analyticsPromptMessageUpgrade
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ extension AnalyticsPromptType {
|
||||
var disableButtonTitle: String {
|
||||
switch self {
|
||||
case .newUser:
|
||||
return VectorL10n.cancel
|
||||
return VectorL10n.analyticsPromptNotNow
|
||||
case .upgrade:
|
||||
return VectorL10n.analyticsPromptStop
|
||||
}
|
||||
@@ -121,3 +121,8 @@ extension AnalyticsPromptType: Identifiable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// For the RiotSwiftUI target presentation.
|
||||
extension AnalyticsPromptType: CustomStringConvertible {
|
||||
var description: String { id }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user