Beautiful, customizable SwiftUI button components with icons and animations
Features • Installation • Usage • Components
CustomLabels is a lightweight SwiftUI package providing three pre-styled button components for building consistent, professional interfaces in iOS apps.
- 🎯 Three Components - Button labels, icon buttons, and styling modifiers
- 🎨 Flexible Styling - Customizable colors, sizes, and states
- ✨ Smooth Animations - Built-in transitions and effects
- 🔄 Two Visual States - Selected (filled) and unselected (outline)
- 🎭 Icon Support - SF Symbols integration
- 🚀 Lightweight - Zero dependencies
dependencies:[.package(url:"https://github.com/yourusername/CustomLabels", from:"1.0.0")]Or add via Xcode: File > Add Package Dependencies
Button label with optional leading/trailing icons and selection states.
Compact circular icon button with shadow effects.
Reusable view modifier for consistent button styling.
import CustomLabels
Button(action:{}){CustomButtonLabel(
iconLeading:"paperplane.fill",
message:"Send",
color:.blue
)}CustomButtonIcon(icon:"trash.fill", color:.red)Text("Continue").appButtonStyle(color:.green, isSelected:true)CustomButtonLabel(
message:"Option",
color:.blue,
isSelected:false // Outline style
)| Parameter | Type | Default | Description |
|---|---|---|---|
iconLeading | String? | nil | Leading SF Symbol |
iconTrailing | String? | nil | Trailing SF Symbol |
message | String | Required | Button text |
color | Color | .blue | Button color |
isSelected | Bool | true | Filled or outline |
fontSize | CGFloat | 16 | Text size |
- iOS 16.0+
- Swift 6.1+
- Xcode 15.0+
MIT License - see LICENSE file for details.
⭐ Star this repo if you find it helpful!