CGFloatLiteral

0.5.0

CGFloat(10) becomes 10.f
devxoul/CGFloatLiteral

What's New

0.5.0

2019-04-03T08:37:09Z
  • Add Swift 5 support 🚀

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.

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 18:58:44 GMT-0900 (Hawaii-Aleutian Daylight Time)