https://github.com/mezhevikin/maker
🍰 A tiny syntactic sugar for Swift initializers. Only 15 lines of codes.
https://github.com/mezhevikin/maker
closure init initializer initializers ios lambda lightweight macos make maker nsobject sugar swift then uikit uiview
Last synced: 3 months ago
JSON representation
🍰 A tiny syntactic sugar for Swift initializers. Only 15 lines of codes.
- Host: GitHub
- URL: https://github.com/mezhevikin/maker
- Owner: mezhevikin
- License: mit
- Created: 2022-09-16T10:52:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-17T13:37:20.000Z (over 2 years ago)
- Last Synced: 2025-02-28T23:09:20.100Z (3 months ago)
- Topics: closure, init, initializer, initializers, ios, lambda, lightweight, macos, make, maker, nsobject, sugar, swift, then, uikit, uiview
- Language: Swift
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Maker
🍰 A tiny syntactic sugar for Swift initializers. Only 15 lines of codes.
```swift
let titleLabel = UILabel {
$0.textColor = .red
$0.text = "Hello"
}
```### Alternative
```swift
let titleLabel = UILabel().make {
$0.textColor = .red
$0.text = "Hello"
}
```### Swift Package Manager
```
https://github.com/mezhevikin/Maker.git
```