Skip to content

Commit 39c86cd

Browse files
updated formatting in the demo app views
1 parent 683d4f8 commit 39c86cd

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

DemoAppSwiftUI/DemoAppSwiftUIApp.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
2-
// Copyright © 2021 Stream.io Inc. All rights reserved.
2+
// Copyright © 2021 Stream.io Inc. All rights reserved.
33
//
44

5-
import SwiftUI
65
import StreamChat
76
import StreamChatSwiftUI
7+
import SwiftUI
88

99
@main
1010
struct DemoAppSwiftUIApp: App {
11-
11+
1212
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
1313
@Injected(\.chatClient) public var chatClient: ChatClient
1414

@@ -26,17 +26,15 @@ struct DemoAppSwiftUIApp: App {
2626
}
2727
}
2828
}
29-
3029
}
3130

3231
class AppState: ObservableObject {
33-
32+
3433
@Published var userState: UserState = .launchAnimation
3534

3635
static let shared = AppState()
3736

3837
private init() {}
39-
4038
}
4139

4240
enum UserState {

DemoAppSwiftUI/LaunchAnimationState.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright © 2021 Stream.io Inc. All rights reserved.
2+
// Copyright © 2021 Stream.io Inc. All rights reserved.
33
//
44

55
import SwiftUI
@@ -13,5 +13,4 @@ class LaunchAnimationState: ObservableObject {
1313
self?.showAnimation = false
1414
}
1515
}
16-
1716
}

DemoAppSwiftUI/LaunchScreen.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright © 2021 Stream.io Inc. All rights reserved.
2+
// Copyright © 2021 Stream.io Inc. All rights reserved.
33
//
44

55
import SwiftUI
@@ -19,7 +19,8 @@ struct StreamLogoLaunch: View {
1919
.scaleEffect(0.6)
2020
.rotationEffect(
2121
.degrees(swinging ? -10 : 10),
22-
anchor: swinging ? .bottomLeading : .bottomTrailing)
22+
anchor: swinging ? .bottomLeading : .bottomTrailing
23+
)
2324
.offset(y: -15)
2425
.animation(.easeInOut(duration: 1).repeatCount(14, autoreverses: true), value: swinging)
2526
VStack(spacing: -46) {

0 commit comments

Comments
 (0)