This package is packed with small useful extension functions. It also contains helper functions defined in Trifles.swift.
Array:
Date:
Optional:
UIView:
UIViewController:
Trifles:
Most functions should be self explanatory. Here are two examples:
let (containerView, backgroundView, label) = Trifles.Button.build()
containerView.applyBorders()
And if the keyboard should be dismissed when tapping:
override func viewDidLoad() {
super.viewDidLoad()
dismissKeyboardOnTap()
}
The contents of this repository is licensed under the Apache License, version 2.0.
link |
Stars: 0 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics