Apple doesn't provide some basic useful utilities to make our iOS Development lives a little easier. This might be for a reason, such as keeping the platform lightweight. It sometimes requires extra time and effort to implement a simple basic feature that you can easily do in Android built-in, so you end up doing a couple more hacks. This library was created to save time, to be more productive, and to be DRY (Don't Repeat Yourself).
The documentation reference can be found here.
Just set PUButton
as the custom class and see the magic! You'll be able to edit directly on the Interface Builder the corner radius, border width, border color, shadow radius, shadow opacity, shadow offset, shadow color, and etc. This applies to other views and controls such as PUView
, PUImageView
and many more.
Import into the file as needed.
import PowerUpSwift
Now you can reduce the bulky Utilities folder that's filling up your source code.
PowerUpSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'PowerUpSwift'
If you were using an old version of PowerUpSwift and want to bump to the latest one, make sure to check out MIGRATION.md.
You are encouraged to help out. See CONTRIBUTING.md.
PowerUpSwift is available under the MIT license. See the LICENSE file for more info.