Enjoy writing Swift code by shortening the hassel to call the same property again and again.
This library helps writing UI codes with much simplicity.
The idea od DeclarativeSwift is driven from the syntax of SwiftUI. The Framework makes UI codes easy and clean. But in Swift, the developers would have to write tedious and repetitive lines code. That's why I decided to make swift easier and more fun.
Note: This library is still in development mode. You're invited to fork and create pull requests. Credits will be given appropriately.
|1||let myView = UIView(frame: viewFrame)||1||let myView = UIView(frame: viewFrame)|
|2||myView.layer.cornerRadius = 12||.roundingCorners(by: 12)|
|3||myView.layer.shadowColor = .black||.addingShadow(color: .black)|
From Xcode go to File > Swift Packages > Add Package; for Xcode 13+, File > Add Packages. Copy the repo URL and paste it in the search box. Set the version to next mejor from 1.0.1
Add this to the Podfile:
Then run this in the Terminal
|Last commit: 2 weeks ago|
Added extensions and declarative functions for