FloatingController you can make views float above another ones.
Create an object from FloatingController and add your custom UIView with size.
let customView = UIView()
customView.backgroundColor = .yellow
let floating = FloatingController()
floating.config(view: customView,
size: CGSize(width: 220, height: 90))
Or, just to test you can call the funcion config wihtou any params.
let floating = FloatingController()
floating.config()
- iOS 13+
- Xcode 13
- Swift 5
- UIKit
- UIWindow