I’ve mentioned a number of custom iOS alert view components, most recently AMSmoothAlert which features a clean style and nice popping animations.
Here’s an open source component created with Swift allowing you to create similarly styled alert views called SCLAlertView-Swift from Viktor Radchenko.
SCLAlertView-Swift features several different styles of alert for errors, notice, warning and info alerts and a very simple syntax. You can customize the title, subtitle, and button text.
This example from the readme shows a custom alert view creation:
SCLAlertView().showTitle(
view: self, // Parent view controller
title: "Congratulations", // Title of view
subTitle: "Operation successfully completed.", // String of view
duration: kDefaultAnimationDuration, // Duration to show before closing automatically, default: 2.0
completeText: "Done", // Optional button value, default: ""
style: .Success // Styles – see below.
)
Here are a couple of images from the readme showing two different styles of alert views created with SCLAlertView-Swift:
You can clone SCLAlertView-Swift from the Github repository at:
You can find SCLAlertView-Swift on Github here.
A very nicely styled custom alert view.
- Open Source Alert View Component With Flat Look And Support For Custom View Insertion
- An Open Source Component For Creating Highly Customizable iOS 7 Style UIAlertViews
- Open Source iOS UI Control For Customizable Flat Style Alert Views With Custom Transitions
- Open Source iOS Control For Easily Making Discrete Informative Alert Views
- iOS UI Control For Customizable Alert Views With Different Animations, Easy Text Input And More
Original article: Open Source iOS Component For Creating Great Looking Custom Alert Views Made With Swift
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





