Added screens for federation introduction

This commit is contained in:
Arnfried Griesert
2024-02-26 06:50:30 +01:00
parent 3b32f25ffa
commit 5cf6f10390
16 changed files with 368 additions and 0 deletions
@@ -35,6 +35,7 @@ struct DeveloperSettingsView: View {
@State private var showAlert = false
@State private var showAlertBirthdayCampaign = false
@State private var permalinkPrefix: String? = UserDefaults.standard.string(forKey: "bwi_permalink_prefix")
@State private var showIntroduceFederation = false
var body: some View {
Form {
@@ -79,6 +80,15 @@ struct DeveloperSettingsView: View {
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
.font(.system(size: 17))
}
Button(action: { showIntroduceFederation = true }) {
Text(BWIL10n.bwiSettingsDeveloperIntroduceFederation)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
.font(.system(size: 17))
}
.sheet(isPresented: $showIntroduceFederation) {
IntroduceFederationView()
.interactiveDismissDisabled()
}
}
if BWIBuildSettings.shared.permalinkPrefixSettings && !BWIBuildSettings.shared.permalinkPrefixes.isEmpty {
SwiftUI.Section(header: Text(BWIL10n.settingsPermalinkPrefixPickerTitle)) {