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
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
enum SkyBehavior: String { | |
case clickSky = "clickSky" | |
case clickSun = "clickSun" | |
case clickSunspot = "clickSunspot" | |
} |
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 | |
struct Null {} | |
enum LikeError: Error { | |
case unknown | |
case liked | |
} | |
let likeResult: Result<Null, LikeError> = .failure(.liked) |