This file contains hidden or 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 notify | |
| import Combine | |
| enum Notify {} | |
| extension Notify { | |
| struct Status: Error { | |
| let rawValue: UInt32 | |
| init(_ rawValue: UInt32) { | |
| self.rawValue = rawValue |
This file contains hidden or 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
| // | |
| // ThreadSafe.swift | |
| // GDICore | |
| // | |
| // Created by Grant Davis on 1/2/21. | |
| // Updated to support `_modify` accessor on 12/5/21. | |
| // | |
| // Copyright © 2021 Grant Davis Interactive, LLC. All rights reserved. | |
| // | |
| import Foundation |
This file contains hidden or 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 | |
| import SwiftUI | |
| // Implemented based on this article: | |
| // https://noahgilmore.com/blog/swiftui-self-sizing-cells | |
| // MARK: - HostingTableViewCell | |
| public final class HostingTableViewCell<Content: View>: UITableViewCell { | |
| private var hostingController = UIHostingController<Content?>(rootView: nil) |
This file contains hidden or 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 | |
| import SpriteKit | |
| class Box { | |
| let sprite: SKShapeNode | |
| let cellAddress: XYPair | |
| var position: CGPoint { | |
| get { return sprite.position } | |
| set { sprite.position = newValue } |