Added the current update
This commit is contained in:
parent
42590eaf00
commit
55c0957511
5 changed files with 99 additions and 29 deletions
42
Apple/App/Model.swift
Normal file
42
Apple/App/Model.swift
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
//
|
||||
// MemoryGame.swift
|
||||
// Memorize
|
||||
//
|
||||
// Created by Thomas Stubblefield on 3/12/23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct Model {
|
||||
|
||||
var status: Status = .unknown
|
||||
|
||||
mutating func connectToBurrow() {
|
||||
print("let's get this working")
|
||||
status = .valid
|
||||
print(status)
|
||||
}
|
||||
}
|
||||
|
||||
enum Status: CustomStringConvertible {
|
||||
case unknown
|
||||
case blank
|
||||
case valid
|
||||
case error
|
||||
case loading
|
||||
|
||||
var description: String {
|
||||
switch self {
|
||||
case .unknown:
|
||||
return "Unknown"
|
||||
case .blank:
|
||||
return "Blank"
|
||||
case .valid:
|
||||
return "Valid"
|
||||
case .loading:
|
||||
return "Loading"
|
||||
default:
|
||||
return "Default"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue