Skip to content

Instantly share code, notes, and snippets.

View radicalappdev's full-sized avatar

Joseph Simpson radicalappdev

View GitHub Profile
@drewolbrich
drewolbrich / SceneUpdateContext+EntitiesWhenRendering.swift
Last active March 6, 2024 15:47
A RealityKit SceneUpdateContext extension that wraps entities(matching:updateSystemWhen:) but works on both visionOS and iOS
//
// SceneUpdateContext+EntitiesWhenRendering.swift
//
// Created by Drew Olbrich on 7/27/23.
// Copyright © 2023 Lunar Skydiving LLC. All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
import SwiftUI
// Models
enum Lyric {
case line(String)
case pause(TimeInterval)
}
class ScrollToModel: ObservableObject {