-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from lorenzhk/main
Make it work for @StateObject style example
- Loading branch information
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
public struct Shake { | ||
import Foundation | ||
|
||
public struct Shake: Equatable { | ||
public let sensibility: ShakeSensibility | ||
public let direction: ShakeDirection | ||
public let time: Date | ||
|
||
public static func == (lhs: Shake, rhs: Shake) -> Bool { | ||
lhs.direction == rhs.direction && lhs.sensibility == rhs.sensibility && lhs.time == rhs.time | ||
} | ||
} |
This file contains 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