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
| // | |
| // ContentView.swift | |
| // Flappy Bird | |
| // Code and Assets From [github.com/sideslash/FlappyBird] | |
| // Created by tomlbro on 2023/9/30. | |
| // | |
| import SwiftUI | |
| import SpriteKit |
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 | |
| // Source from Kavsoft-youtube | |
| // https://www.youtube.com/watch?v=4ceKPSTlL4I | |
| struct FullSwipeNavigationStack<Content: View>: View { | |
| @ViewBuilder var content: Content | |
| /// Full Swipe Custom Gesture | |
| @State private var customGesture: UIPanGestureRecognizer = { | |
| let gesture = UIPanGestureRecognizer() | |
| gesture.name = UUID().uuidString |
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 | |
| /// ContentView: Model | |
| struct ContentView { | |
| /// viewmodel first, one View one View Model, intuitively. if need. | |
| @StateObject private var viewmodel = ViewModel() | |
| /// properties here | |
| let recordTime: Date | |