Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Mao k-mao

View GitHub Profile
View TimeTurner2_ContentView.swift
import SwiftUI
struct ResultRow: View {
var convertedTime: Text
var unit: String
var body: some View {
Section {
HStack {
Spacer()
View TimeTurner_ContentView.swift
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"
}
View RockPaperScissorsTrainer_ContentView.swift
import SwiftUI
struct PlayerMoveEmoji: ViewModifier {
func body(content: Content) -> some View {
content
.font(.system(size: 60))
.padding(.bottom, 8)
}
}