Skip to content

Commit

Permalink
Conditionally show splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
chickdan committed Feb 4, 2025
1 parent 2038a2c commit 92a7a8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Swiftfin tvOS/Views/SelectUserView/SelectUserView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ struct SelectUserView: View {

@Default(.selectUserServerSelection)
private var serverSelection
@Default(.selectUserUseSplashscreen)
private var selectUserUseSplashscreen

// MARK: - Environment Variable

Expand Down Expand Up @@ -286,7 +288,7 @@ struct SelectUserView: View {
}
.animation(.linear(duration: 0.1), value: scrollViewOffset)
.background {
if let splashScreenImageSource {
if let splashScreenImageSource, selectUserUseSplashscreen {
ZStack {
ImageView(splashScreenImageSource)
.aspectRatio(contentMode: .fill)
Expand Down

0 comments on commit 92a7a8f

Please sign in to comment.