Skip to content

Instantly share code, notes, and snippets.

View ynagatomo's full-sized avatar

Yasuhito Nagatomo ynagatomo

View GitHub Profile
// Gradient Border Animation
// See Also: https://x.com/sucodeee/status/1894700908824395843
import SwiftUI
struct ContentView: View {
@State var rotation: CGFloat = 0
var body: some View {
VStack(spacing: 40) {
@arthurschiller
arthurschiller / RealityRendererTest.swift
Last active April 25, 2024 18:59
RealityRenderer Test (visionOS)
//
// RealityRendererView.swift
// RealityRendererTest
//
// Created by Arthur Schiller on 11.01.24.
//
import SwiftUI
import Metal
import MetalKit
@arthurschiller
arthurschiller / RealityKit_CustomBindTargetAnimation.swift
Last active December 21, 2024 22:31
RealityKit visionOS – Animate Custom Bind Target Parameters 🏃‍♀️
import SwiftUI
import RealityKit
struct AnimationDemoView: View {
@Environment(\.realityKitScene) var scene: RealityKit.Scene?
init() {
// register System and Component – Important!
AnimationSystem.registerSystem()
AnimationComponent.registerComponent()