https://github.com/devxoul/cgfloatliteral
CGFloat(10) becomes 10.f
https://github.com/devxoul/cgfloatliteral
swift syntactic-sugar
Last synced: 13 days ago
JSON representation
CGFloat(10) becomes 10.f
- Host: GitHub
- URL: https://github.com/devxoul/cgfloatliteral
- Owner: devxoul
- License: mit
- Created: 2015-12-31T08:26:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T08:36:54.000Z (about 6 years ago)
- Last Synced: 2025-06-14T03:04:09.328Z (13 days ago)
- Topics: swift, syntactic-sugar
- Language: Swift
- Homepage:
- Size: 16.6 KB
- Stars: 36
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CGFloatLiteral
==============
[](https://travis-ci.org/devxoul/CGFloatLiteral)
[](https://cocoapods.org/pods/CGFloatLiteral)
[](https://github.com/Carthage/Carthage)Simple CGFloat initializer.
At a Glance
-----------```swift
let imageViewTop = 15.f
````imageViewTop` is now a `CGFloat`.
Installation
------------- **For iOS 8+ projects** with [CocoaPods](https://cocoapods.org):
```ruby
pod 'CGFloatLiteral', '~> 0.2'
```
- **For iOS 8+ projects** with [Carthage](https://github.com/Carthage/Carthage):```
github "devxoul/CGFloatLiteral" ~> 0.2
```- **For iOS 7 projects** with [CocoaSeeds](https://github.com/devxoul/CocoaSeeds):
```ruby
github 'devxoul/CGFloatLiteral', '0.2.0', :files => 'Sources/*.swift'
```
- **Using [Swift Package Manager](https://swift.org/package-manager)**:```swift
import PackageDescriptionlet package = Package(
name: "MyAwesomeApp",
dependencies: [
.Package(url: "https://github.com/devxoul/CGFloatLiteral", "0.2.0"),
]
)
```License
-------**CGFloatLiteral** is under MIT license. See the [LICENSE](LICENSE) file for more info.