I am building a simple app that should play a video and then give the option to move forward (NEXT) of (BACK). I’m new to SwiftUI.
Here is the view code:
VStack {
VideoPlayer(player: AVPlayer(url: Bundle.main.url(forResource: "Video", withExtension: "mov")!))
HStack {
Spacer()
Button(action: {
viewRouter.currentPage = .page3
}) {
BackEnoughButtonContent()
}
Spacer()
Button(action: {
viewRouter.currentPage = .page4
}) {
NextSafetyButtonContent()
}
}
}
Currently, the buttons appear on launch of this view. Is there a way to delay when the buttons actually are visible? For example, the NEXT and BACK buttons are not visually present until 1:00 minute into video.