Skip to content

Instantly share code, notes, and snippets.

@halleygen
halleygen / FizzBuzz.swift
Created March 18, 2019 07:18
Fizz Buzz in Swift
protocol Fizzable {
func canBeFizzed() -> Bool
}
protocol Buzzable {
func canBeBuzzed() -> Bool
}
protocol Fizzbuzzable: Fizzable, Buzzable {
func canBeFizzBuzzed() -> Bool
import Foundation
// MARK: - Theme Protocol
@objc protocol Themeable: class {
optional func themeDidChange(to theme: Theme)
}
// MARK: - Theme and ThemeManager
final class Theme {
let text: UIColor