Post

Replies

Boosts

Views

Activity

Reply to Video Player: Error if video could not load?
Thanks for the helpful answer! Code was this: func getVideoPlayerOnline(url: String) -> AVPlayer? {     guard let url = URL(string: url) else {         print("url not found")             return nil         }     //test if video is playable     if AVAsset(url: url).isPlayable {         let player = AVPlayer(url: url)         return player     } else {         return nil     } } Now if I insert .isPlayable it works! By the way, dear Claude: Do you know how to enable email notifications in this forum? Cause I didn't get them on this and on other threats.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’21
Reply to Simulator background color changed?
Thanks for your reply! Yes it occur in all projects. All storyboard background colors are yellow! Every time if I add a view controller the colors are back. Clear build folder does not help unfortunately. Hope Apple can deal with my bug report. Because I dunno when this issue appears once and it is not reproducible with my testings...
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’21