This file contains hidden or 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
| // | |
| // DebugPrint.swift | |
| // | |
| // Created by Javier Loucim on 10/22/16. | |
| // Copyright © 2016 Javier Loucim. All rights reserved. | |
| // | |
| import Foundation | |
| func print(_ message:String , separator: String = " ", terminator: String = "\n", functionName: String = #function, fileName: String = #file, lineNumber: Int = #line) { |
This file contains hidden or 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
| content <key>NSExtension</key> | |
| <dict> | |
| <key>NSExtensionAttributes</key> | |
| <dict> | |
| <key>NSExtensionActivationRule</key> | |
| <string>SUBQUERY ( | |
| extensionItems, | |
| $extensionItem, | |
| SUBQUERY ( | |
| $extensionItem.attachments, |
This file contains hidden or 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
| content//: Playground - noun: a place where people can play | |
| import UIKit | |
| import Foundation | |
| var str = "Hello, @playground.something more" | |
| //(?<=\\s|^|\\b)(?:[-'.%$#&/]\\b|\\b[-'.%$#&/]|[A-Za-z0-9]|\\([A-Za-z0-9]+\\))+(?=\\s|$|\\b) | |
| let range = NSMakeRange(0, str.characters.count) | |
| var regex = try! NSRegularExpression(pattern: "@(?<=\\s|^|\\b)(?:[-'.%$#&/]\\b|\\b[-'.%$#&/]|[A-Za-z0-9]|\\([A-Za-z0-9]+\\))+(?=\\s|$|\\b)", options: .caseInsensitive) |
This file contains hidden or 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 Unbox | |
| import Foundation | |
| extension Unboxable { | |
| func safeUnbox(unboxer: Unboxer,key :String )->String{ | |
| do{ | |
| return try unboxer.unbox(key: key) as String | |
| }catch{ | |
| return "" |
This file contains hidden or 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 | |
| extension String { | |
| //MARK: - Localized | |
| var localized: String { | |
| return NSLocalizedString(self, tableName: "Main", bundle: Bundle.main, value: "", comment: "") |
This file contains hidden or 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
| // | |
| // Diffable.swift | |
| // | |
| // Created by danielgalasko on 8/5/17. | |
| // | |
| import Foundation | |
| import IGListKit |
This file contains hidden or 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
| // | |
| // TicketSectionController.swift | |
| // | |
| // Created by Javier Loucim on 8/5/17. | |
| // Copyright © 2017 Javier Loucim. All rights reserved. | |
| // | |
| import Foundation | |
| import UIKit | |
| import IGListKit |
This file contains hidden or 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 MessagesViewController: ListAdapterDataSource { | |
| func objects(for listAdapter: ListAdapter) -> [ListDiffable] { | |
| var objects:Array<ListDiffable> = Array<ListDiffable>() | |
| for item in data { | |
| switch item { | |
| case is String: | |
| objects.append(item as! ListDiffable) | |
| case is TicketShort: | |
| objects.append((item as! TicketShort).diffable()) |
This file contains hidden or 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 TicketShort: Diffable { | |
| var diffIdentifier: String { | |
| return id | |
| } | |
| static func ==(lhs: TicketShort, rhs: TicketShort) -> Bool { | |
| return lhs.id == rhs.id | |
| } |
This file contains hidden or 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
| // | |
| // UIView+GlowBackground.swift | |
| // GlowBackgroundView | |
| // | |
| // Created by Javier Loucim on 9/8/17. | |
| // Copyright © 2017 Qeeptouch. All rights reserved. | |
| // | |
| import Foundation | |
| import UIKit |
OlderNewer