Post

Replies

Boosts

Views

Activity

Reply to SwiftUI - VideoPlayer bug
I have the same error using Xcode 12.5 and iPads 14.5.1 CATransformLayer: 0x282798de0> - changing property masksToBounds in transform-only layer, will have no effect import SwiftUI import AVKit struct ContentDetailView: View {     @EnvironmentObject var model: ContentModel          var body: some View {                  let lesson = model.currentLesson         let url = URL(string: Constants.videoHostUrl + (lesson?.video ?? ""))                  VStack {             // Only show video if we get a valid URL             if url != nil {                 VideoPlayer(player: AVPlayer(url: url!))                     .cornerRadius(10)
Jun ’21