Overview
Base MVVM, helper functions and extensions
Checkout example project
Usage
// Step 1 - Import
import UIKitCore
// Step 2 - Use
// constraints
myLabel
.add(to: parentView)
.centerX(to: parentView.centerX)
.centerY(to: parentView.centerY)
.with(width: 200, height: 100)
// extensions
myView.layer.border(.gray, width: 1, edge: .all)
// register cells
myCollectionView.register(CustomCell.self)
checkout extensions for more
Installation Guide
Carthage
Step 1: Add following to your CartFile
github "LenisDev/UIKitCore" ~> 0.0.3
Step 2:
run carthage update
from current project directory.
That's all, you have it installed.
CocoaPods
Step 1:
Add pod 'UIKitCore', '~> 0.0.3'
to your Podfile:
target 'MyApp' do
pod 'UIKitCore', '~> 0.0.3'
end
Step 2:
run pod install
from current project directory.
That's all, you have it installed.
Try it using following command
pod try UIKitCore
Swift Package Manager
dependencies: [
.package(url: "https://github.com/LenisDev/UIKitCore.git", .upToNextMajor(from: "0.0.3"))
]
Contribute
- Play around and report bugs
- Fix issues and create PR
- Add documentations and new features