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
OLSIFS=$IFS | |
IFS=$'\n' | |
for f in $(find $CODESIGNING_FOLDER_PATH -name '*.framework') | |
do | |
codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" --preserve-metadata=identifier,entitlements --timestamp=none "$f" | |
done | |
IFS=$OLDIFS |
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
String(data: dataVar, encoding: .utf8) |
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
// Usage: | |
// UI { | |
// Anything in here will execute on the main thread | |
// } | |
func UI(_ block: @escaping ()->Void) { | |
DispatchQueue.main.async(execute: block) | |
} |
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
// Usage: | |
// BG { | |
// Anything in here will execute in the background | |
// } | |
func BG(_ block: @escaping ()->Void) { | |
DispatchQueue.global(qos: .default).async(execute: block) | |
} |
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
#define SCREEN_WIDTH ((([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) || ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown)) ? [[UIScreen mainScreen] bounds].size.width : [[UIScreen mainScreen] bounds].size.height) | |
#define SCREEN_HEIGHT ((([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) || ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown)) ? [[UIScreen mainScreen] bounds].size.height : [[UIScreen mainScreen] bounds].size.width) |
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
@objc func notificationTriggered(_ notification: Notification) { | |
if let userInfo = notification.userInfo { | |
if let name = userInfo["name"] as? String { | |
if name == "CaretBlink" { | |
return | |
} | |
} | |
} | |
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 { | |
convenience init?(hexString: String) { | |
var chars = Array(hexString.hasPrefix("#") ? hexString.dropFirst() : hexString[...]) | |
let red, green, blue, alpha: CGFloat | |
switch chars.count { | |
case 3: | |
chars = chars.flatMap { [$0, $0] } | |
fallthrough | |
case 6: | |
chars = ["F","F"] + chars |
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 CustomDebugStringConvertible { | |
var debugDescription: String { | |
var returnString = lineWith(separator: "+", title: " \(type(of: self)) ") | |
let selfMirror = Mirror(reflecting: self) | |
for child in selfMirror.children { | |
if let propertyName = child.label { | |
returnString += "\(propertyName): \(child.value)\n" | |
} |
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
// | |
// IconTitleTextView.swift | |
// | |
// Created by Brent Michalski on 12/23/18. | |
// Copyright © 2018 Perlguy, Inc. All rights reserved. | |
// | |
// THIS CUSTOM CLASS PROPERLY LOADS FROM A STORYBOARD!!! | |
import UIKit |
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
pod repo push PodSpecs NewPodFile.podspec --allow-warnings |
OlderNewer