https://github.com/nzrsky/modernobjc
Header-only ObjC modernization pack 😎
https://github.com/nzrsky/modernobjc
let objc objective-c typeinference
Last synced: 4 months ago
JSON representation
Header-only ObjC modernization pack 😎
- Host: GitHub
- URL: https://github.com/nzrsky/modernobjc
- Owner: nzrsky
- License: mit
- Created: 2022-10-16T08:32:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-17T22:53:26.000Z (over 2 years ago)
- Last Synced: 2024-12-16T14:58:11.131Z (5 months ago)
- Topics: let, objc, objective-c, typeinference
- Language: Objective-C
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ModernObjC
[](https://app.travis-ci.com/nzrsky/ModernObjC)
[](https://codecov.io/github/nzrsky/ModernObjC?branch=master)
[](https://cocoapods.org/pods/ModernObjC)
[](https://github.com/Carthage/Carthage)
[](http://cocoadocs.org/docsets/ModernObjC)
[](http://twitter.com/nzrsky)It adds lets, vars and typed copy/foreach functions for ObjC collections
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
```objective-c
// Objective-C without types
NSDictionary *notes = [document fetchNotes];
printf("%d", [notes[@"default"] words]);// Before:
NSDictionary*> *notes = [document fetchNotes];
printf("%d", notes[@"default"]);NSDictionary*> *notes = [document fetchNotes];
printf("%d", notes[@"default"]);
```## Requirements
## Installation
ModernObjC is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'ModernObjC'
```## Author
Alexey Nazarov, [email protected]
## License
ModernObjC is available under the MIT license.
See the LICENSE file for more info.