whatisgithub

What is swiftglow?

margox/swiftglow — explained in plain English

Analysis updated 2026-05-18

12SwiftAudience · developerSetup · easy

In one sentence

A Swift package that adds animated neon glow borders to SwiftUI views, rendered on the GPU with Metal for smooth performance.

Mindmap

mindmap
  root((SwiftGlow))
    What it does
      Animated glow borders
      Neon capsule effects
      Metal-based rendering
    Tech stack
      Swift
      SwiftUI
      Metal
      SPM
    Use cases
      Glow buttons and cards
      Cross-platform presets
      Hover and press states
    Audience
      iOS developers
      Cross-platform teams
    Features
      GPU fragment shader
      Auto state switching
      Live parameter inspector
    Platforms
      iOS 15+
      macOS 12+
      tvOS 15+

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add an animated glowing border effect to a button or card in a SwiftUI app.

USE CASE 2

Reuse a single glow style preset across both an Apple app and a React Native app.

USE CASE 3

Build hover and press glow states that change automatically as a user interacts with a view.

USE CASE 4

Tune glow color, speed, and layering live using the included macOS demo app.

What is it built with?

SwiftSwiftUIMetalSwift Package Manager

How does it compare?

margox/swiftglowamethystsoft/keyringaccesskageroumado/refrax-browser
Stars121212
LanguageSwiftSwiftSwift
Setup difficultyeasyeasyhard
Complexity2/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

So what is it?

SwiftGlow is a Swift Package that adds animated glowing borders and neon capsule-style effects to SwiftUI views. You attach it to any view with a single modifier call, and the library handles rendering a color-cycling border that animates around the edges of rounded rectangles. The glow can be placed behind, inside, or on top of the view, and you can stack multiple glow layers with independent colors, speeds, and opacity. The rendering uses Metal, Apple's low-level graphics API, rather than stacking SwiftUI blur or shadow effects. This keeps CPU use low and lets the animation stay smooth even when multiple glow layers are active at once. The library computes the glow in a fragment shader, which runs directly on the GPU. The configuration design intentionally mirrors an existing React Native library called react-native-animated-glow. If you are building apps on both Apple platforms and React Native, you can write a single glow preset once and reuse it across both codebases, with minimal translation work. You define one or more named states -- default, hover, and press -- each with its own speed, colors, and layer setup. The modifier accepts a status value that selects which state is active, or you can use auto mode and the library switches states automatically as the user interacts with the view. The package ships with ready-made presets you can apply without writing any configuration. SwiftGlow works on iOS 15 and later, macOS 12 and later, and tvOS 15 and later. It installs through Swift Package Manager. The repository also includes a macOS demo app with a live parameter inspector where you can tune the glow in real time, and a one-click import workflow for bringing React Native glow presets into Apple platform projects.

Copy-paste prompts

Prompt 1
Show me how to add an animated glow border to a SwiftUI button using SwiftGlow.
Prompt 2
Explain how a Metal fragment shader can render a glowing border effect on the GPU.
Prompt 3
Help me create a glow preset that mirrors one I already built with react-native-animated-glow.
Prompt 4
Walk me through setting up default, hover, and press glow states for a view.
Prompt 5
How would I install and try SwiftGlow's macOS demo app to tune glow parameters?

Frequently asked questions

What is swiftglow?

A Swift package that adds animated neon glow borders to SwiftUI views, rendered on the GPU with Metal for smooth performance.

What language is swiftglow written in?

Mainly Swift. The stack also includes Swift, SwiftUI, Metal.

How hard is swiftglow to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is swiftglow for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.