devxoul / CGFloatLiteral

CGFloat(10) becomes 10.f

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CGFloatLiteral

Swift Build Status CocoaPods Carthage compatible

Simple CGFloat initializer.

At a Glance

let imageViewTop = 15.f

imageViewTop is now a CGFloat.

Installation

  • For iOS 8+ projects with CocoaPods:

    pod 'CGFloatLiteral', '~> 0.2'
  • For iOS 8+ projects with Carthage:

    github "devxoul/CGFloatLiteral" ~> 0.2
    
  • For iOS 7 projects with CocoaSeeds:

    github 'devxoul/CGFloatLiteral', '0.2.0', :files => 'Sources/*.swift'
  • Using Swift Package Manager:

    import PackageDescription
    
    let package = Package(
        name: "MyAwesomeApp",
        dependencies: [
            .Package(url: "https://github.com/devxoul/CGFloatLiteral", "0.2.0"),
        ]
    )

License

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

About

CGFloat(10) becomes 10.f

License:MIT License


Languages

Language:Swift 74.9%Language:Ruby 25.1%