Skip to content

Instantly share code, notes, and snippets.

View amosgyamfi's full-sized avatar

Amos Gyamfi amosgyamfi

View GitHub Profile
//
// 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 {
//
// MeasuringHeartRate.swift
import SwiftUI
struct MeasuringHeartRate: View {
@State var measuring = false
let streamBlue = Color(#colorLiteral(red: 0, green: 0.3725490196, blue: 1, alpha: 1))
let streamRed = Color(#colorLiteral(red: 1, green: 0, blue: 0, alpha: 1))
//
// DateTimeTimerView..swift
import SwiftUI
struct DateTimeTimerView: View {
var body: some View {
NavigationStack {
List {
// 1. Month, day, year
//
// CloudCompositingView.swift
// OpenSwiftUIDesigns
//
// Created by Amos Gyamfi on 9.4.2024.
//
import SwiftUI
struct CloudCompositingView: View {
//
// LabelView.swift
// OpenSwiftUIDesigns
//
// Created by Amos Gyamfi on 4.4.2024.
//
import SwiftUI
struct LabelView: View {
//
// LetVarDeclaration.swift
// SwiftInfo
//
// Created by Amos Gyamfi on 1.4.2024.
//
import SwiftUI
struct LetVarDeclaration: View {
//
// LoadFromRemoteURL.swift
// OpenvisionOS
//
// Created by Amos Gyamfi on 24.3.2024.
//
import SwiftUI
import RealityKit
import RealityKitContent
//
// DefaultAnimationAnimationModifier.swift
// OpenSwiftUIAnimations
import SwiftUI
struct DefaultAnimationAnimationModifier: View {
let letters = Array("Hello")
@State private var flipAngle = Double.zero