back to projects
Lucide-Swift — Native SwiftUI Shapes, Zero Dependencies

Lucide-Swift

Type-safe Swift package for Lucide Icons — 2,100+ regular and experimental Lab icons rendered as native SwiftUI shapes, with zero runtime dependencies.

Open source Swift Package Manager github.com/ajaxjiang96/lucide-swift

What it does

A type-safe Swift package for 2,100+ regular Lucide and experimental Lucide Lab icons. Each icon renders as a native SwiftUI shape with full control over color, stroke width, and size.

Lucide icons rendered in SwiftUI

Key features

Complete Icon Set

Full Lucide library — auto-updated from upstream.

Type-Safe API

Every icon is a compile-time checked symbol, not a string lookup.

Native Vector Rendering

SVG paths translated to SwiftUI Path at build time.

Zero Runtime Dependencies

Pure Swift and SwiftUI for iOS, macOS, tvOS, watchOS, and visionOS.

SwiftUI Modifiers

Set color, stroke width, and size with standard View modifiers.

Why this approach

Lucide-Swift converts SVG path data into native SwiftUI shapes. That keeps icon names type-safe, supports Xcode autocomplete, and exposes SwiftUI's standard styling, animation, and layout APIs without UIKit, AppKit, or WebKit bridges.