A super set of safe extensions to avoid the most common crashes in iOS apps.
To run the example project, clone the repo, and run pod install
from the Example directory first.
The following UIKit elements are implementing this protocol that contains a safe text.
protocol SafeTextProtocol {
var safeText: String { get }
}
- UITextField
- UILabel
- UIButton
The following UIKit elements are implementing this protocol that contains a safe title.
protocol SafeTitleProtocol {
var safeTitle: String { get }
}
- UIBarButtonItem
- UINavigationBar
- UINavigationItem
- UIViewController
SafeStuff is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SafeStuff'
My name is Carlos Mejía, Software developer focused on iOS Development.
Thanks for reading up here! :)
https://www.instagram.com/carlosmejia083/
https://www.linkedin.com/in/mejiagarcia/
SafeStuff is available under the MIT license. See the LICENSE file for more info.