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
public func printV( _ message:Any..., file:String = #file, function:String = #function, line:Int = #line) { | |
let type = Constants.logs.v | |
if !type.status { | |
return | |
} | |
if let f = file.split(separator: "/").last { | |
print("<<<\(type.symbol) \(f) Line - \(line)", "\(function) says:", message, "\(DateUtil.convert(date: DateUtil.convert(toSgDateFormat: Date())))") | |
} else { | |
print("<<<\(type.symbol) \(file) \(function)", "Line: \(line)", message, "\(DateUtil.convert(date: DateUtil.convert(toSgDateFormat: Date())))") |
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
// | |
// UISearchBar.swift | |
// R2S | |
// | |
// Created by Vito Cuaderno on 5/7/18. | |
// Copyright © 2018 Total Integrated Resources. All rights reserved. | |
// | |
import UIKit |
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
// | |
// UITableView.swift | |
// R2S | |
// | |
// Created by Vito Cuaderno on 4/30/18. | |
// Copyright © 2018 Total Integrated Resources. All rights reserved. | |
// | |
import UIKit | |
extension UITableView { |
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
// | |
// UIImage.swift | |
// R2S | |
// | |
// Created by Vito Cuaderno on 3/22/18. | |
// Copyright © 2018 Total Integrated Resources. All rights reserved. | |
// | |
import UIKit |
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 UIKit | |
extension UIColor { | |
convenience init(hex: String) { | |
self.init(hex: hex, alpha:1) | |
} | |
convenience init(hex: String, alpha: CGFloat) { | |
let hexWithoutSymbol = hex | |
let scanner = Scanner(string: hexWithoutSymbol) |
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
// | |
// Promise.swift | |
// R2S | |
// | |
// Created by Vito Cuaderno on 5/9/18. | |
// Copyright © 2018 Total Integrated Resources. All rights reserved. | |
// | |
import Foundation |
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
// | |
// EventBus.swift | |
// R2S | |
// | |
// Created by Vito Cuaderno on 6/1/18. | |
// Copyright © 2018 Total Integrated Resources. All rights reserved. | |
// | |
import Foundation | |
final class EventBus { |