From 93211b7c6e146cd8e9fae4de43c7dbb09c3347b2 Mon Sep 17 00:00:00 2001 From: Fabrizio Demaria Date: Tue, 3 Dec 2024 16:33:59 +0100 Subject: [PATCH] refactor: Attributes in new line --- .../ConfidenceDemoApp/ConfidenceDemoApp.swift | 6 ++++-- .../ConfidenceDemoApp/ContentView.swift | 15 ++++++++++----- .../ConfidenceDemoApp/LoginView.swift | 15 ++++++++++----- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/ConfidenceDemoApp/ConfidenceDemoApp/ConfidenceDemoApp.swift b/ConfidenceDemoApp/ConfidenceDemoApp/ConfidenceDemoApp.swift index e0370a97..f31dfbc0 100644 --- a/ConfidenceDemoApp/ConfidenceDemoApp/ConfidenceDemoApp.swift +++ b/ConfidenceDemoApp/ConfidenceDemoApp/ConfidenceDemoApp.swift @@ -3,8 +3,10 @@ import SwiftUI @main struct ConfidenceDemoApp: App { - @AppStorage("loggedUser") private var loggedUser: String? - @AppStorage("appVersion") private var appVersion = 0 + @AppStorage("loggedUser") + private var loggedUser: String? + @AppStorage("appVersion") + private var appVersion = 0 private let confidence: Confidence private let flaggingState = ExperimentationFlags() diff --git a/ConfidenceDemoApp/ConfidenceDemoApp/ContentView.swift b/ConfidenceDemoApp/ConfidenceDemoApp/ContentView.swift index b67287b0..7c969f94 100644 --- a/ConfidenceDemoApp/ConfidenceDemoApp/ContentView.swift +++ b/ConfidenceDemoApp/ConfidenceDemoApp/ContentView.swift @@ -3,11 +3,16 @@ import Confidence import Combine struct ContentView: View { - @EnvironmentObject var flaggingState: ExperimentationFlags - @AppStorage("loggedUser") private var loggedUser: String? - @State private var isLoggingOut = false - @State private var loggedOut = false - @State private var textColor = Color.red + @EnvironmentObject + var flaggingState: ExperimentationFlags + @AppStorage("loggedUser") + private var loggedUser: String? + @State + private var isLoggingOut = false + @State + private var loggedOut = false + @State + private var textColor = Color.red private let confidence: Confidence diff --git a/ConfidenceDemoApp/ConfidenceDemoApp/LoginView.swift b/ConfidenceDemoApp/ConfidenceDemoApp/LoginView.swift index 1de3e67d..dabe8f0c 100644 --- a/ConfidenceDemoApp/ConfidenceDemoApp/LoginView.swift +++ b/ConfidenceDemoApp/ConfidenceDemoApp/LoginView.swift @@ -2,11 +2,16 @@ import SwiftUI import Confidence struct LoginView: View { - @EnvironmentObject var flaggingState: ExperimentationFlags - @AppStorage("loggedUser") private var loggedUser: String? - @State private var loginCompleted = false - @State private var flagsLoaded = false - @State private var loggingIn = false + @EnvironmentObject + var flaggingState: ExperimentationFlags + @AppStorage("loggedUser") + private var loggedUser: String? + @State + private var loginCompleted = false + @State + private var flagsLoaded = false + @State + private var loggingIn = false private let confidence: Confidence