How to use AVPlayerViewController in SwiftUI using UIViewRepresentable

Ever since it's introduction in 2019, SwiftUI has been a hit amongst iOS/macOS/tvOS/watchOS developers since it has made UI creation so much easier than UIKit. Not only can you make advanced layouts more easily now with SwiftUI, but it allows you to use the same set of tools and APIs to create UIs for all Apple platforms. As time goes on, Apple's plan is to use SwiftUI in many places as possible.