Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Pocket Casts TV App/PocketCastsTVApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ struct PocketCastsTVApp: App {
var body: some Scene {
WindowGroup {
RootView()
.task {
appLifecycleAnalytics.didBecomeActive()
}
}
.onChange(of: scenePhase) { _, newPhase in
appLifecycleAnalytics.handle(scenePhase: newPhase)
Expand Down
2 changes: 1 addition & 1 deletion Pocket Casts TV App/UI/Auth/SigningInView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct SigningInView<ViewModel: SigningInViewModelProtocol>: View {
}
Color.pcBackgroundSunken
.opacity(blackOverlayOpaque ? 1 : 0)
.animation(reduceMotion ? nil : .easeInOut(duration: Pacing.fadeDuration), value: blackOverlayOpaque)
.animation(reduceMotion ? nil : .smooth, value: blackOverlayOpaque)
.allowsHitTesting(false)
Comment on lines 71 to 74
.ignoresSafeArea()
}
Expand Down
11 changes: 9 additions & 2 deletions Pocket Casts TV App/UI/RootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,27 @@ struct RootView: View {
Spacer()
ProgressView()
Spacer()
}.frame(maxWidth: .infinity)
}
.frame(maxWidth: .infinity)
.transition(.opacity)
case .welcome:
WelcomeView()
.transition(.opacity)
case .browsing, .signedIn:
MainTabView()
.transition(.opacity)
case .userSync:
SigningInView()
.transition(.opacity)
case .dataLossResync:
DataLossResyncView()
.transition(.opacity)
case .serverSignedOut:
UserSignedOutView()
.transition(.opacity)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) if you want to apply them everywhere, I'd suggest using Group

}
}
.animation(.easeInOut, value: coordinator.state)
.animation(.smooth, value: coordinator.state)
.environment(coordinator)
Comment on lines 34 to 36
.environment(focusStore)
.task {
Expand Down