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.
Post
Replies
Boosts
Views
Activity
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.
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:
Watch this example:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
it is working.
Watch this example:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this example:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this example:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
https://developer.apple.com/videos/play/wwdc2021/10046/