├─ Level // Root Folder
├─ 3rdParty (Any 3rd party which can not added through package manager)
├─ AppDelegate
├─ AppDelegate.swift
├─ AppDelegateBGSupport.swift (extension of AppDelegate, methods associated with background support (prefetching, download etc))
├─ AppDelegateNotificationSupport.swift (extension of AppDelegate, methods associated with Notification(Push, Local) support)
├─ Controllers
├─ Feedback
├─ Controllers (View controllers strictly associated with Feedback Module)
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
enum FontType { | |
case installed(FontName) | |
case custom(String) | |
case system | |
case systemBold | |
case systemItatic | |
case systemWeighted(weight: Double) | |
case monoSpacedDigit(size: Double, weight: Double) | |
} | |
enum FontSize { |
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
enum FontName: String { | |
case RobotoBlack = "Roboto-Black" | |
case RobotoBlackItalic = "Roboto-BlackItalic" | |
case RobotoBold = "Roboto-Bold" | |
case RobotoBoldItalic = "Roboto-BoldItalic" | |
case RobotoItalic = "Roboto-Italic" | |
case RobotoLight = "Roboto_Light" | |
case RobotoLightItalic = "Roboto-LightItalic" | |
case RobotoMedium = "Roboto-Medium" | |
case RobotoMediumItalic = "Roboto-MediumItalic" |
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 Utility { | |
/// Logs all available fonts from iOS SDK and installed custom font | |
class func logAllAvailableFonts() { | |
for family in UIFont.familyNames { | |
print("\(family)") | |
for name in UIFont.fontNames(forFamilyName: family) { | |
print(" \(name)") | |
} | |
} |
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
import Foundation | |
import UIKit | |
// Usage Examples | |
let shadowColor = Color.shadow.value | |
let shadowColorWithAlpha = Color.shadow.withAlpha(0.5) | |
let customColorWithAlpha = Color.custom(hexString: "#123edd", alpha: 0.25).value | |
enum Color { | |
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
let shadowColor = Color.shadow.value | |
let shadowColorWithAlpha = Color.shadow.withAlpha(0.5) | |
let customColorWithAlpha = Color.custom(hexString: "#123edd", alpha: 0.25).value |
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
let shadowColor = UIColor(red: 204.0/255.0, green: 204.0/255.0, blue: 204.0/255.0, alpha: 1.0) | |
let shadowColorWithAlpha = UIColor(red: 204.0/255.0, green: 204.0/255.0, blue: 204.0/255.0, alpha: 0.5) | |
let customColorWithAlpha = UIColor(red: 18.0/255.0, green: 62.0/255.0, blue: 221.0/255.0, alpha: 0.25) |
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
extension Color { | |
var value: UIColor { | |
var instanceColor = UIColor.clear | |
switch self { | |
case .border: | |
instanceColor = UIColor(hexString: "#333333") | |
case .theme: | |
instanceColor = UIColor(hexString: "#ffcc00") |
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
enum Color { | |
case theme | |
case border | |
case shadow | |
case darkBackground | |
case lightBackground | |
case intermidiateBackground | |
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
extension UIColor { | |
/** | |
Creates an UIColor from HEX String in "#363636" format | |
- parameter hexString: HEX String in "#363636" format | |
- returns: UIColor from HexString | |
*/ | |
convenience init(hexString: String) { |