Skip to content

Commit

Permalink
Fix cast compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Feb 1, 2024
1 parent 4bb14a1 commit 246f2ca
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions Sources/OpenSwiftUI/EventHandling/Focus/FocusStoreLocation.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
class FocusStoreLocation<A: Hashable>/*: Location*/ {
init() { fatalError() }
class FocusStoreLocation<A: Hashable>: AnyLocation<A> {
override var wasRead: Bool {
get {
_wasRead
}
set {
_wasRead = newValue
}
}

override func get() -> A {
fatalError("TODO")
}

override func set(_ value: A, transaction: Transaction) {
fatalError("TODO")
}

typealias Value = A

override init() { fatalError() }

var store: FocusStore
weak var host: GraphHost?
Expand Down

0 comments on commit 246f2ca

Please sign in to comment.