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
// | |
// SplashView.swift | |
// Steady Gym Workout Tracker | |
// https://steady.rocks | |
// Created by Rafael Proença | |
// | |
import SwiftUI | |
struct ScaledRoundedRectangle: Shape { |
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 private var animate: Bool = false | |
@State private var color: Color = .myGray | |
@State private var pattern: [[Int]] = [ | |
[0, 1, 2, 3, 4, 5, 6, 7, 8,], | |
[9, 10, 11, 12, 13, 14, 15, 16, 17,], | |
[18, 19, 20, 21, 22, 23, 24, 24, 26,], |
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 | |
import WebKit | |
struct ContentView: View { | |
@ObservedObject var webViewStateModel: WebViewStateModel = WebViewStateModel() | |
var body: some View { | |
NavigationView { | |
LoadingView(isShowing: .constant(webViewStateModel.loading)) { //loading logic taken from https://stackoverflow.com/a/56496896/9838937 | |
//Add onNavigationAction if callback needed |