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 | |
enum StoredObject: Codable { | |
case all(groups: [InterestGroup]?) | |
case selected(group: InterestGroup?) | |
case events(groupID: UUID, events: [Event]?) | |
func url(root url: URL) -> URL { | |
switch self { | |
case .all: |
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 | |
/// Create a custom operator | |
infix operator =≈= | |
/// Equatable through introspection | |
/// Compares lhs to rhs and returns true of both sides have the same property names and values | |
/// - Parameters: | |
/// - lhs: lefthand side | |
/// - rhs: righthand side | |
func =≈= <T>(lhs: T, rhs: T) -> Bool { |
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
body { | |
font-family: sans-serif; | |
} | |
ul { | |
list-style: none | |
} | |
li { | |
background: slategrey; |