Skip to content

Instantly share code, notes, and snippets.

@raproenca
raproenca / SplashView.swift
Created March 12, 2025 19:57
SplashScreen and Icon created using SwiftUI for my app Steady Workout Tracker
//
// SplashView.swift
// Steady Gym Workout Tracker
// https://steady.rocks
// Created by Rafael Proença
//
import SwiftUI
struct ScaledRoundedRectangle: Shape {
@Inncoder
Inncoder / ContentView.swift
Created October 2, 2024 20:29
Grid loading animation
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,],
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