Latest 0.1.2
Homepage https://github.com/hoppus/AspectScreen
License MIT
Platforms ios 8.0
Authors

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

Installation

CocoaPods

  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.

Latest podspec

{
    "name": "AspectScreen",
    "version": "0.1.2",
    "summary": "A lightweight component to calculate screen space",
    "description": "AspectScreen is a lightweight and pure Swift implemented component for calculating screen space points",
    "homepage": "https://github.com/hoppus/AspectScreen",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "hoppus": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/hoppus/AspectScreen.git",
        "tag": "0.1.2"
    },
    "source_files": "AspectScreen/Classes/*",
    "pushed_with_swift_version": "echo "3.0" >> .swift-version"
}

Pin It on Pinterest

Share This