Skip to content

tokorom/SwiftSuperellipse

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

SwiftSuperellipse

top

Features

  • Superellipse view can be added
  • Any UIView subclass can be masked to Superellipse

Usage

Sample Code

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)

Execution result

sample

Installation

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages