Merge branch 'gil/SP1_space_creation' into gil/143_create_public_space

# Conflicts:
#	Riot/Generated/Strings.swift
#	Riot/Assets/en.lproj/Vector.strings
This commit is contained in:
Gil Eluard
2022-01-10 09:50:00 +01:00
99 changed files with 1925 additions and 209 deletions
@@ -21,14 +21,17 @@ import SwiftUI
/// A modifier for showing the activity indicator centered over a view.
struct ActivityIndicatorModifier: ViewModifier {
var show: Bool
@ViewBuilder
func body(content: Content) -> some View {
content
.overlay(activityIndicator, alignment: .center)
}
@ViewBuilder
private var activityIndicator: some View {
if show {
content
.overlay(ActivityIndicator(), alignment: .center)
} else {
content
ActivityIndicator()
}
}
}
@@ -20,6 +20,7 @@ import Foundation
@available(iOS 14.0, *)
enum MockAppScreens {
static let appScreens: [MockScreenState.Type] = [
MockLocationSharingScreenState.self,
MockAnalyticsPromptScreenState.self,
MockUserSuggestionScreenState.self,
MockPollEditFormScreenState.self,