Beautiful is a collection of carefully crafted, reusable SwiftUI components focused on delightful interactions and clean visual presentation β built with kids, creatives, and story-first apps in mind.
Designed to be portable, expressive, and lightweight.
CharacterCard
β a visual representation for emoji or image-based charactersPressable
β a flexible gesture wrapper for native-feeling press feedback.pressable()
β a SwiftUI modifier to apply press behavior to any view
Add Beautiful via Swift Package Manager:
dependencies: [
.package(url: "https://github.com/michaelborgmann/Beautiful.git", from: "0.1.0")
]
Or in Xcode:
- File β Add Packages
- Enter the repo URL
- Choose Beautiful
CharacterCard(
visual: .emoji("π¦"),
placeholder: "π€",
background: .white,
aspectRatio: 1,
cornerRadius: 24,
shadowRadius: 3,
padding: 16
)
Supports:
- Emoji or image visual
- Custom aspect ratios (square, 4:3, etc.)
- Rounded corners and shadows
- Placeholder fallback
Pressable(action: {
print("Tapped!")
}) {
CharacterCard(visual: .emoji("π¦"))
}
Or:
Text("Tap Me")
.padding()
.background(Color.white)
.cornerRadius(12)
.pressable {
print("Tapped!")
}
Adds smooth press animation and native-like release behavior.
- Swift 5.10+
- iOS 17+
- SwiftUI
- Add .selected overlay support for CharacterCard
- Optional haptic feedback for Pressable
- Expand visuals (e.g. imageURL, SF Symbols)
- Add web/Android equivalents later via portable design system
Created with care by Michael Borgmann for joyful, expressive apps β like WonderTales.
π License
MIT License. See LICENSE for details.