This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RealityRendererView.swift | |
// RealityRendererTest | |
// | |
// Created by Arthur Schiller on 11.01.24. | |
// | |
import SwiftUI | |
import Metal | |
import MetalKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import RealityKit | |
struct AnimationDemoView: View { | |
@Environment(\.realityKitScene) var scene: RealityKit.Scene? | |
init() { | |
// register System and Component – Important! | |
AnimationSystem.registerSystem() | |
AnimationComponent.registerComponent() |