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 | |
protocol Poi: Codable { | |
var type: PoiType { get } | |
} | |
enum PoiType: String, Codable { | |
case meter, signage | |
var metatype: Poi.Type { |
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
// | |
// Assets.swift | |
// Hello | |
// | |
// Created by Haithem on 28/08/2019. | |
// Copyright © 2019 highthem. All rights reserved. | |
// | |
// Generated by PaintCode | |
// http://www.paintcodeapp.com | |
// |
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 UIControl { | |
/// Typealias for UIControl closure. | |
public typealias UIControlTargetClosure = (UIControl) -> () | |
private class UIControlClosureWrapper: NSObject { | |
let closure: UIControlTargetClosure | |
init(_ closure: @escaping UIControlTargetClosure) { | |
self.closure = closure | |
} |
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 UserDefaults { | |
var userID: String? { | |
get { | |
return string(forKey: #function) | |
} | |
set { | |
set(newValue, forKey: #function) | |
} | |
} | |
} |