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 | |
class CodeTimer { | |
var startTime: CFAbsoluteTime = 0 | |
init() { start() } | |
func start() { startTime = CFAbsoluteTimeGetCurrent() } | |
func log(_ message: String) { | |
let timeElapsed = CFAbsoluteTimeGetCurrent() - startTime |
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 SwiftUI | |
public enum Enum1: Int, Codable, CaseIterable, CustomStringConvertible { | |
public var description: String { | |
return "\(rawValue)" | |
} | |
case one, two, three | |
} | |
public enum Enum2: String, Codable, CaseIterable, CustomStringConvertible { |
OlderNewer