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 SwiftUI | |
struct ContentView: View { | |
enum timeUnits: String, CaseIterable, Identifiable { | |
var id: String { self.rawValue } | |
case seconds = "seconds" | |
case minutes = "minutes" | |
case hours = "hours" | |
case days = "days" | |
} |
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 SwiftUI | |
struct ResultRow: View { | |
var convertedTime: Text | |
var unit: String | |
var body: some View { | |
Section { | |
HStack { | |
Spacer() |
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 SwiftUI | |
struct PlayerMoveEmoji: ViewModifier { | |
func body(content: Content) -> some View { | |
content | |
.font(.system(size: 60)) | |
.padding(.bottom, 8) | |
} | |
} |