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
import SwiftUI | |
struct Data: Identifiable, Equatable { | |
let id: UUID = .init() | |
let value: String | |
} | |
struct ContentView: View { | |
@Namespace var namespace | |
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
import SwiftUI | |
import Combine | |
// MARK: - Data | |
class CurrentTime: ObservableObject { | |
@Published var seconds = Double.zero | |
private let timer = Timer.publish(every: 0.16, on: .main, in: .common).autoconnect() | |
private var cancellableSet = Set<AnyCancellable>() | |
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
import SwiftUI | |
private var menus: [String] = [ | |
"cat", | |
"car", | |
"human", | |
"robot", | |
"coffee" | |
] |
OlderNewer