Swift UI

To add AdPlayer on a SwiftUI page wrap AdPlayerPlacementView with a class that conforms UIViewRepresentable protocol
And then use it as a regular SwiftUI View

import SwiftUI struct BasicExample: View { let tagId: String var body: some View { AdPlacementView( tagId: tagId, animation: .default ) .padding(.vertical, 1) .border(.green, width: 1) } }

Please find the complete example here:
SwiftUI example