Skip to content

Instantly share code, notes, and snippets.

View amosgyamfi's full-sized avatar

Amos Gyamfi amosgyamfi

View GitHub Profile
//
// 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 {
//
// SquareInfinitySymbol.swift
// OpenSwiftUIAnimations
//
// Created by Amos Gyamfi on 12.5.2024.
//
import SwiftUI
struct SquareInfinitySymbol: View {
struct SignatureView: Shape {
func path(in rect: CGRect) -> Path {
var path = Path()
let width = rect.size.width
let height = rect.size.height
path.move(to: CGPoint(x: 0.24829*width, y: 0.85103*height))
path.addLine(to: CGPoint(x: 0.02337*width, y: 0.85103*height))
path.addCurve(to: CGPoint(x: 0, y: 0.82403*height), control1: CGPoint(x: 0.0105*width, y: 0.85103*height), control2: CGPoint(x: 0, y: 0.83889*height))
path.addCurve(to: CGPoint(x: 0.02337*width, y: 0.79733*height), control1: CGPoint(x: 0, y: 0.80947*height), control2: CGPoint(x: 0.0105*width, y: 0.79733*height))
path.addLine(to: CGPoint(x: 0.26303*width, y: 0.79733*height))
//
// SignatureAnimation.swift
// OpenSwiftUIAnimations
//
// Created by Amos Gyamfi on 11.5.2024.
//
import SwiftUI
struct SignatureAnimation: View {