- Superellipse view can be added
- Any UIView subclass can be masked to Superellipse
import SwiftSuperellipse
let superellipseView = SuperellipseView(frame: CGRect(x: 20, y: 20, width: 100, height: 100))
superellipseView.backgroundColor = .clear
view.addSubview(superellipseView)
let imageView = UIImageView(image: UIImage(named: "mayuge_dog_face"))
imageView.frame = superellipseView.bounds
superellipseView.addSubview(imageView)
- You can use Swift Package Manager on Xcode