Skip to content

upeugene/AspectScreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AspectScreen

AspectScreen is a lightweight and pure Swift implemented component for calculating screen space points.

Installation

  1. Add the following to your Podfile:

    pod 'AspectScreen', '~> 0.1'
  2. Integrate your dependencies using frameworks: add use_frameworks! to your Podfile.

  3. Run pod install.

Example

let width = AspectScreen.partOfScreen(part: 0.5, type: .width)
let height = AspectScreen.partOfScreen(part: 0.5, type: .height)
        
let view = UIView(frame: CGRect(x: 0, y: 0, width: width, height: height))

Credits

AspectScreen' author is Eugeny Popov.

License

AspectScreen is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors