List of errata:
Im using PHPickerViewController and AVPlayer to create a pick up and play a video, and that part works, and to show the video I use this line:
PhotoPickerResultView(result: photoPickerService.results[0])
and this part work fine to, arrives from this:
but I don't understand why if you add a simple "print("Hello")" we get that alarm??
if un > deux {
one()
print("Hello")
} else {
two()
anothervariable = un + deux
}
and it's not just with print("Hello"), it's with several things for example:
anothervariable = un + deux
etc.
like an example, if the only thing I need to do is use "print()"
if I do:
func one() -> some View {
print("Hello")
return Text("One")
}
it will print("Hello") and return Text("One")
is there a way return "nothing" ?, just print()
because if I try to use something like this:
func one() {
print("Hello")
}
I have the same error.
I found this:
@State var fps: Float = 0.0
let asset = yourAVPlayer.currentItem!.asset
let tracks = asset.tracks(withMediaType: .video)
let fps = tracks.first!.nominalFrameRate
another way?
List of errata:
Im using PHPickerViewController and AVPlayer to create a pick up and play a video, and that part works, and to show the video I use this line:
PhotoPickerResultView(result: photoPickerService.results[0])
and this part work fine to, arrives from this:
but I don't understand why if you add a simple "print("Hello")" we get that alarm??
if un > deux {
one()
print("Hello")
} else {
two()
anothervariable = un + deux
}
and it's not just with print("Hello"), it's with several things for example:
anothervariable = un + deux
etc.
like an example, if the only thing I need to do is use "print()"
if I do:
func one() -> some View {
print("Hello")
return Text("One")
}
it will print("Hello") and return Text("One")
is there a way return "nothing" ?, just print()
because if I try to use something like this:
func one() {
print("Hello")
}
I have the same error.
I found this:
@State var fps: Float = 0.0
let asset = yourAVPlayer.currentItem!.asset
let tracks = asset.tracks(withMediaType: .video)
let fps = tracks.first!.nominalFrameRate
another way?