Skip to content

Instantly share code, notes, and snippets.

View amosgyamfi's full-sized avatar

Amos Gyamfi amosgyamfi

View GitHub Profile
//
// MovingDashPhaseButton.swift
// CoreSwiftUI
//
// Created by Amos Gyamfi on 24.8.2024.
//
import SwiftUI
struct MovingDashPhaseButton: View {
# This file is the main file for the FastHTML package.
# It imports all the necessary modules and classes.
from fasthtml.common import *
# Create app and router instances
# rt helps to connect url paths to the functions that will be executed
app, rt = fast_app()
# Define a route decorator
@rt('/') # Define a route for the root path or home route
//
// BreathRotateWiggle.swift
// CoreSwiftUI
import SwiftUI
struct BreathRotateWiggle: View {
@State private var breathe = false
@State private var rotate = false
@State private var wiggle = false
//
// VideoPlayerView.swift
// OpenvisionOS
//
// Created by Amos Gyamfi on 7.2.2024.
//
import SwiftUI
import AVKit
import SwiftUI
struct AnimationCompletion: View {
@State private var yOffset = 0.0
var body: some View {
Button {
moveUpAndBack()
} label: {
Text("😍")
//
// MeshGradientColorMixView.swift
// OpenSwiftUIDesigns
//
// Created by Amos Gyamfi on 14.6.2024.
//
import SwiftUI
struct MeshGradientColorMixView: View {
//
// ColorHarmony.swift
// CoreSwiftUI
//
// Created by Amos Gyamfi on 18.6.2024.
//
import SwiftUI
struct ColorHarmony: View {
//
// BreathRotateWiggle.swift
// CoreSwiftUI
//
// Created by Amos Gyamfi on 16.6.2024.
//
import SwiftUI
struct BreathRotateWiggle: View {
//
// MeshGradientOverview.swift
//
// Created by Amos Gyamfi on 14.6.2024.
//
import SwiftUI
struct MeshGradientOverview: View {
@State private var isAnimating = false
//
// DateAndTimeInterval.swift
// SwiftUIDevTips
//
// TimeInterval is the length of time in seconds
//
import SwiftUI
struct DateAndTimeInterval: View {