This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** BOOL: Detect if device is an iPad **/ | |
#define IS_IPAD ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ) | |
/** BOOL: Detect if device is an iPhone or iPod **/ | |
#define IS_IPHONE ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ) | |
/** BOOL: Detect if device is an iPhone 5 **/ | |
#define IS_IPHONE_5 ( IS_IPHONE ? CGSizeEqualToSize([[UIScreen mainScreen] preferredMode].size,CGSizeMake(640, 1136)) ? YES : NO : NO ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIDevice+model.h | |
// | |
// Created by Kellen Styler on 10/18/13. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Arrow Mixins | |
* | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SimpleUIPanGestureRecognizer.h | |
// Playback | |
// | |
// Created by KS on 4/1/14. | |
// Copyright (c) 2014 ks. All rights reserved. | |
// | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SimpleUICircle.h | |
// | |
// Created by ks on 3/30/14. | |
// Copyright (c) 2014 ks. All rights reserved. | |
// | |
#ifndef Rise_Alarm_PBDegreeToRadianMacros_h | |
#define Rise_Alarm_PBDegreeToRadianMacros_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SimpleNSObject.swift | |
// Rise Alarm | |
// | |
// Created by Kellen Styler on 4/3/16. | |
// Copyright (c) 2016 Kellen Styler. All rights reserved. | |
// | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class func log( message:String = "WOOT!!" ) { print( message ) } | |
class func logValues( values:AnyObject... ) { | |
guard values.count > 1 else { | |
App.log( "\( values[0] )" ) | |
return | |
} | |
var valueString:String = "\( values[0] )" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BidirectionalCollection.swift | |
// | |
// Created by Kellen Styler | |
// | |
import Foundation | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DefaultKey.swift | |
// | |
// Created by Kellen Styler on 9/9/19. | |
// | |
/// Default Key -Used by Defaults for keyed values | |
public struct DefaultKey<DefaultType> { | |