Skip to content

Instantly share code, notes, and snippets.

View jinSasaki's full-sized avatar
:octocat:
Hello World

Jin Sasaki jinSasaki

:octocat:
Hello World
  • AWA
  • Tokyo
View GitHub Profile
struct Model {
enum State: Int {
case none, loaded
}
let value: Int
var state: State? { return State(rawValue: value) }
func p() {
if state == .none {
print("A")
struct Model {
enum State: Int {
case none, loaded
}
let value: Int
var state: State? { return State(rawValue: value) }
func p() {
if state == .none {
print("A")