Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


[![CI Status]( Sease/SeaseAssist.svg?style=flat)]( Sease/SeaseAssist) Version License Platform

Summary Info

This library is founded on the basis that commonly performed tasks, which take several lines of code to write should be encompased into simple methods, either using class extensions or services, that can be written in a single line of code. Thus reducing code redundancy and increasing code readibility.

In this package you will find the following:

  • A collection of NSDate Helpers
  • Button and View helpers to make good looking views easily and handle things like rounding, borders and more
  • An Array and Dictionary extension to convert to and from JSON
  • AN HTTP Request class to easily send api requests without any non-standard libraries
  • A UIImage View extension to load images from a URL and cache the image locally.
  • A Validation Helper class for NSString
  • String and NSData cryptography Helpers
  • NSThread Helpers to easily run blocks on the main and background threads
  • A Speech Service for speech to text.
  • UIAlertController Helpers to show with actions and text input
  • Image Helpers for things like blurring and resizing
  • Animation and Motion Effects Helpers
  • A View Controller helper that can recursively determine the visible view controller from anywhere in your application
  • A new helper that shows text on screen for a short time, like an Android "Toast"
  • Network Reachability Helper
  • An Event Counter to track the number of times an event has occurred during the life of an app, or daily.
  • Blurred Background Helpers, to present a view over another and blur the background.
  • Keyboard Helpers to add an action tool bar and hide the keyboard on click
  • TextField subclasses for date and value inputs
  • A service to help send emails easily from anywhere

Enjoy! Please feel free to fork and contribute to this repo!


ios 7+


SeaseAssist is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SeaseAssist"

And import the following Header file

#import "SeaseAssist.h"

This pod will work if your project uses objective-c or Swift.

  • For best results with an objective-c Project, add the SeaseAssist.h import into your .pch file and you will not need to import SeaseAssist into each of your classes that references it.
  • For Similiar result with Swift, you should NOT include the use_frameworks! in your pod file and add a bridging header that includes the library. If you must use_frameworks!, then you need to include SeaseAssist in any class that uses its functions. -- add a new header file to yoour project named ProjectName-Bridging-Header.h -- add '#import <SeaseAssist/SeaseAssist.h>' to your header file -- in your Target Build settings -> Swift Compiler Code Generation -> Objective-C Bridging Header, add a reference to the newly created file. Should be [ProjectName/ProjectName-Bridging-Header.h]


Logan Sease,


SeaseAssist is available under the MIT license. See the LICENSE file for more info.

Sorry, there is a lot here. I will do my best to try to keep this documentation readable.



A modern button with a nice clean rounded border, an empty background and some text


A button with a gradient filled background matching the button's Tint Color


A View with slightly rounded corners and a thin border.


Create a UITextField with a Date picker instead of a keyboard


A UITextField with a PickerView instead of a keyboard


A badge that goes over any UIView. See UIView+Badge.h

[view.badge setBadgeValue:@"4"];



A class to track events throughout the life of the app, or daily events

+(NSUInteger)addCountForEvent:(NSString*)event count:(NSInteger)add;
+(NSUInteger)addCountForDailyEvent:(NSString*)dailyEvent count:(NSInteger)count;

Sound Service

A service to play sounds and maintain a queue

+ (id)sharedService;
+(void)playSoundAtPath:(NSString*)path withVolume:(float)volume;


Simple Text to Speech with the Siri API

+ (id)sharedService;

Email Service

A simple Email interface to open an email view controller from anywhere.

-(void)emailTo:(NSArray*)emails withSubject:(NSString*)subject body:(NSString*)body attachments:(NSArray<MailServiceAttachment*>*)attachments fromVC:(UIViewController*)parent  andCompletion:(void(^)(BOOL success))handler;

Image Picker

A simple interface to show an image picker

@interface ImagePickerHelper 
-(void)selectImageFrom:(UIViewController*)source ofType:(UIImagePickerControllerSourceType)type andCompletion:(void(^)(UIImage* image))handler;



A helper class to make http requests asynchronously in one line without the need for any 3rd party frameworks.

For a more robust Networking helper, see QwikHttp, and also QwikJson for json parsing.

+(void)jsonRequestToUrl:(NSString*)urlString withMethod:(NSString*)method withHeaders:(NSDictionary*)headers withParams:(NSDictionary*)params withHandler:(void (^)(NSString* response,NSError * error))handler;

+(void)httpRequestToUrl:(NSString*)urlString  withMethod:(NSString*)method withHeaders:(NSDictionary*)headers withParams:(NSDictionary*)params withHandler:(void (^)(NSString* response,NSError * error))handler;

+(NSString*)addParameters:(NSDictionary*)urlParams toUrl:(NSString*)url;

Reachability Helpers

Find our internet connection status.

@interface UIDevice (Reachability)


Json Serialization and Deserialization





NSDate Helpers






-(BOOL)isBetween:(NSDate*)startDate and:(NSDate*)endDate;

Date Helpers

public extension Date {
public func isSameDay(as date: Date?) -> Bool
public func nsdate() -> NSDate
public func isOnOrAfter(_ date: Date!) -> Bool

NSMutableArray Helpers

- (void)shuffle;

//wrap an array around a single object (make it the first object and then go to the end
//and start back at the beginning.
public extension Array {
public mutating func swap(from ind1: Int, to ind2: Int)

NSString Helpers

-(BOOL)contains:(NSString *)string;
- (NSInteger)indexOf: (char)character;
-(NSArray *)splitOnChar:(char)ch;
-(NSString *)substringFrom:(NSInteger)from to:(NSInteger)to;
-(NSString *)stringByStrippingWhitespace;
-(NSString*)initials; //Herby Hancock = HH
+(NSString*)displayString:(float)number; //1,200 = 1.2K

NSString validation


String Format Helpers

extension String {
public static func isEmpty(_ string: String?) -> Bool

public static func nonWhiteSpaceCharacterCount(_ string: String?) -> Int

public func upperCasedWords() -> String

public func capitalizingFirstLetter() -> String

public var isSingleEmoji: Bool { get }

public var containsEmoji: Bool { get }

public func camelCaseToTitleCase() -> String!

public func camelCaseToUnderscoreCase() -> String!

public func underscoreCaseToCamelCase() -> String!

String indexes and subscripting

extension String
public subscript(r: CountableClosedRange<Int>) -> String? { get }

Encryption Helpers


-(NSData *) aesEncryptedDataWithKey:(NSData *) key;


- (NSData *) sha256;
- (NSString *) stringFromMD5;

//secure a string by adding Key Encryption and then Base 64 Encoding it.
- (NSString*)encryptWithKey:(NSString*)key;

NSThread Helpers

Run blocks in the main or background threads with ease

+(void)mainThread:(void (^)())main;
+(void)backgroundThread:(void (^)())background;
+(void)delay:(float)length code:(void (^)())function;

UIDevice: Unique Identifiers

Since apple now longer gives access to device level Identifier information, this is another way to get an Identifier based on a hash of the mac address

- (NSString *) uniqueDeviceIdentifier;
- (NSString *) uniqueGlobalDeviceIdentifier;

UIDevice system version


Keychain Helpers

Read and write to the keychain.

@interface UIDevice (Keychain)
+(void)write:(NSString*)value toKeychainWithKey:(NSString*)key appSpecific:(BOOL)appSpecific;
+(NSString*)readFromKeychainWithKey:(NSString*)key appSpecific:(BOOL)appSpecific;


###SAMBProgressHUD+Singleton An extension to SAMBProgressHUD to show a loading dialog singleton without needing to add it to your view or set it up.


###UIAlertController Show an alert controller with actions and get notified what action was chosen with a single line

+(void)showAlertWithTitle:(NSString*)title andMessage:(NSString*)message from:(UIViewController*)controller;
+(void)showDialogWithTitle:(NSString*)title andMessage:(NSString*)message from:(UIViewController*)controller andActions:(NSArray<NSString*>*)buttonTitles completionHandler:(void (^)(NSInteger selected))handler;
+(void)showTextEntryDialogWithTitle:(NSString*)title andMessage:(NSString*)message andPlaceHolder:(NSString*)holder from:(UIViewController*)controller completionHandler:(void (^)(NSString* text))handler;


+(void)showWithTitle:(NSString*)title andMessage:(NSString*)message;

###UILabel+Message Show a quick "Toast" on screen for a desired amount of time

+(void)showMessage:(NSString*)message ofSize:(float)fontSize ofColor:(UIColor*)color inView:(UIView*)view forDuration:(float)seconds;


###UIImage Helpers

//Add a gassian Blur of the desired amount of pixels

//Get an image from a file, but filled with a different fill color.
- (UIImage *)imageWithColor:(UIColor *)color;

//Scale an image.
- (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize;

//turn an image to greyscale
-(UIImage*) toGrayscale;

//capture an uiimage from a uiview

Cache image and load from cache

+(void)cacheImage:(UIImage*)image forUrl:(NSString*)url;

###UIImageView Helpers Set an image from a URL and cache the image locally.


Round an image


Set an image from URL to a UIImage View with caching and a default

@interface UIImageView (Networking)
-(void)setImageFromUrl:(NSString*)url withDefault:(UIImage*)defaultImage andRounding:(BOOL)round;

Set an image from URL like above, but prefill with initials if no image is found

@interface UIImageView (Initials)
-(UILabel*)addInitialsPlaceholder:(NSString*)title circle:(BOOL)circle;
-(void)setImageFromUrl:(NSString*)urlString withPlaceholderString:(NSString*)holder withPlaceHolderImage:(UIImage*)image rounding:(BOOL)round;
-(void)setImageFromUrl:(NSString*)urlString withPlaceholderString:(NSString*)holder withPlaceHolderImage:(UIImage*)image rounding:(BOOL)round completionHandler:(BoolCompletionHandler)handler;

QR Code Generation

extension String
public func toQRCode() -> UIImage?
public func toHiDefQRCode() -> UIImage?


###UIView+Bounce Make your UI Feel alive and highlight important views by adding a playful bounce

-(void)bounceFrom:(float)from to:(float)to;

###UIView+MotionEffects Add cool motion effects that give your app depth by moving as you move your device

+(void)addMotionEffectsTo:(NSArray*)views withOffset:(float)offset;

###UIView+AnimateShow animating hiding and showing of a view or a group of views

+(void)animateShow:(NSArray<UIView*>*)views withDelay:(float)delay;

View Appearance


//round the corners 
-(void)round:(float)cornerRadius withBorderWidth:(float)width andColor:(UIColor*)color;

//completely circle the view and optionally add a border.
-(void)circleWithColor:(UIColor*)color width:(float)width;

//add a visual effect view with a blur

//adjust a frame
-(void)adjustFrameXOffset:(float)horizontal yOffset:(float)vertical hOffset:(float)height wOffset:(float)width;


- (void)makeGlossy;
- (void)makeClean;


convenience init(r: Int, g: Int, b: Int, alpha: CGFloat = 1.0)

###Segmented Control

@interface UISegmentedControl (Helpers)

###Decorate textfields and labels

extension UITextField {

func decorateWithImage(named imageName: String) -> UIImageView

func setBottomBorder(color: UIColor = default) 

extension UILabel {
    func addToLeft(image: UIImage?) -> <<error type>>

Application View Hierarchy

Find the top most view controller from anywhere. Searches recursively through navigation, Tab bar and modal view controllers in your app window ###UIViewController+Top

@interface UIView (Search)


BLURRED: For use with a Covers Current Context Modal Transition

@interface UIViewController (Blur)

@interface UITableViewController (Blur)

###To Present and Blur Without a storyboard

@interface UIViewController (Presentation)
+(void)present:(nonnull UIViewController* )newVC on:(nullable UIViewController*)source;
+(void)present:(nonnull UIViewController* )newVC on:(nullable UIViewController*)source withBlur:(float)blurAmount;

###Add Non-Blurred background images

@interface UIViewController (Background)
-(void)setBackgroundImage:(UIImage*)image withAlpha:(float)alpha;

@interface UITableViewController (Background)
-(void)setBackgroundImage:(UIImage*)image withAlpha:(float)alpha;

UITableView Helpers

Reload sections of a tableview

// NOTE This may cause issues :(
-(void)reloadSections:(NSInteger)fromSection to:(NSInteger)toSection;

Add a header to a tableview


Navigation Helpers

###Add Tranitions

@interface UINavigationController (Transition)
//add a fade transitions between view controllers for your next push

//go back, either by popping or dismissing--- but let this figure out which.


Clear Tab bar


Keyboard Helpers

-(UIToolbar*)addToolbarWithLeftButton:(NSString*)lTitle withSelector:(SEL)lSelector andRightButton:(NSString*)rTitle withSelector:(SEL)rSelector andTarget:(id)target;

Path Helpers on NSFileManager

+(NSString *)myDocumentsPathForFile:(NSString*)fileName;
+(NSString *)tempPathForFile:(NSString*)fileName;


extension UISwipeGestureRecognizer
     convenience public init(target: Any?, action: Selector?, direction: Direction) {


A Library of iOS Helper classes designed to make writing iOS Code more effecient.







No packages published