To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 12.0+
CommonUIKitComponents is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CommonUIKitComponents'
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/luisMan97/CommonUIKitComponents.git", .upToNextMajor(from: "1.1.0"))
]
Compatibilidad: Swift
v1.0.0::
- Métodos:
//Present an ModalViewController
func showModal
- Usage examples:
let alertView = AlertView().then {
if #available(iOS 13.0, *) { $0.alertImage = UIImage(systemName: "pencil.circle.fill") }
$0.titleText = "Title"
$0.messageText = "Description"
$0.titleTextColor = .blue
}
let modalConfiguration = ModalConfiguration()
.setCustomView(alertView)
showModal(modalConfiguration, primaryCompletion: {
print("Primary button tapped")
})
luisMan97, [email protected]
CommonUIKitComponents is available under the MIT license. See the LICENSE file for more info.