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
| struct ContentView: View{ | |
| @State private var selection: Int? = nil | |
| var body: some View{ | |
| NavigationView{ | |
| List{ | |
| Text("Does") | |
| Text("Not") | |
| Text("Matter") | |
| Text("For") |
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
| struct OAuthToken: Codable { | |
| let idToken: String | |
| let refreshToken: String | |
| let expirationTimestamp: Double | |
| var expirationDate: Date{ | |
| Date(timeIntervalSince1970: expirationTimestamp / 1000) | |
| } | |
| var isValid: Bool{ |
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 { | |
| @State var width: CGFloat? = nil | |
| var body: some View { | |
| Form{ | |
| ForEach(0..<115){ i in | |
| Row(place: i, width: $width) | |
| } |