Skip to content

Instantly share code, notes, and snippets.

View drmarkpowell's full-sized avatar

Mark Powell drmarkpowell

View GitHub Profile
import SwiftUI
struct ScrollBounceInView: View {
let items = [
Item(icon: "sun.max.fill", color: .orange, title: "Sun"),
Item(icon: "heart.fill", color: .red, title: "Heart"),
Item(icon: "bolt.fill", color: .yellow, title: "Bolt"),
Item(icon: "leaf.fill", color: .green, title: "Leaf"),
Item(icon: "moon.fill", color: .indigo, title: "Moon")
import SwiftUI
struct GlowAttribute: TextAttribute { }
@Animatable
struct GlowTextRenderer: TextRenderer {
var progress: Double
func draw(layout: Text.Layout, in context: inout GraphicsContext) {
for line in layout {