Post

Replies

Boosts

Views

Activity

Reply to dismiss AVPlayer after pressing done or video is finished
Try both at same time:                "yourAVPlayer".replaceCurrentItem(with: nil)               "theURLoftheAVPlayer".removeAll()
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Swift - AVPlayer - Stop player in another cell when a new player starts
Try both at same time:                "yourAVPlayer".replaceCurrentItem(with: nil)               "theURLoftheAVPlayer".removeAll()
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to How to solve the error: Type '()' cannot conform to 'View' when the problem is inside "if"
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to How to solve the error: Type '()' cannot conform to 'View' when the problem is inside "if"
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to How implement the custom buttons of the AVplayer? from a struct
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:
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to UIImagePickerController and PHPickerViewController bug in iOS 15 when used in SwiftUI
Watch this example: https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc it is working.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to SwiftUI - How to load a video from Photos
Watch this example: https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to How to load video with PHPicker
Watch this example: https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to PHPickerViewController - can't get URL from PHPickerResult
Watch this example: https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Create an array of Images by picking them from PHPickerViewController
Watch this: https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to PHPickerViewController did timeout
Watch this: https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Replies
Boosts
Views
Activity
Feb ’22
Reply to PHPickerViewController
https://developer.apple.com/videos/play/wwdc2021/10046/
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’22