Skip to content

Commit

Permalink
💄 Fixed transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
qeude committed May 15, 2020
1 parent 2be9908 commit a7e80bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion Notflix/Sources/Views/Common/ShimmerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ struct ShimmerView: View {
self.opacity = 1
}
}

}
}

Expand Down
6 changes: 3 additions & 3 deletions Notflix/Sources/Views/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ struct MainView: View {
}
.accentColor(.red)
.font(.headline)
.zIndex(9999)
.zIndex(0)
if showSplashScreen {
SplashscreenView()
.onAppear {
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
self.showSplashScreen = false
}
}
.transition(AnyTransition.opacity.animation(.easeInOut(duration: 0.4)))
.zIndex(99999) //Workaround to ensure the transition is working both ways
.transition(AnyTransition.opacity.animation(.easeInOut(duration: 0.5)))
.zIndex(1) //Workaround to ensure the transition is working both ways
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions Notflix/Sources/Views/TVShowDetails/TVSeasonListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,14 @@ struct TVSeasonListView: View {
}
}
}
.transition(.opacity)
.transition(AnyTransition.opacity.animation(.easeInOut(duration: 0.5)))
.padding(.bottom, 40)
}
}

struct TVSeasonListView_Previews: PreviewProvider {
static var previews: some View {
ZStack {
// Color.black.edgesIgnoringSafeArea(.all)
TVSeasonListView(tvShowId: 1402,
tvSeason: TVSeason(id: 3643,
name: "Season 1",
Expand Down

0 comments on commit a7e80bf

Please sign in to comment.