Skip to content

Commit

Permalink
refactor: Attributes in new line
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziodemaria committed Dec 3, 2024
1 parent 271a184 commit fff6bd6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
6 changes: 4 additions & 2 deletions ConfidenceDemoApp/ConfidenceDemoApp/ConfidenceDemoApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
15 changes: 10 additions & 5 deletions ConfidenceDemoApp/ConfidenceDemoApp/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
15 changes: 10 additions & 5 deletions ConfidenceDemoApp/ConfidenceDemoApp/LoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fff6bd6

Please sign in to comment.