Dokumentasi — SwiftUI Web Preview
Apa yang didukung?
- Layout: VStack, HStack, ZStack, Spacer, Divider, ScrollView, Group
- Component: Text, Image, Button, TextField, SecureField, Toggle, Slider, ProgressView, Rectangle, RoundedRectangle, Circle, Capsule
- Modifier: font, fontWeight, foregroundColor, background, padding, frame, cornerRadius, opacity, shadow, border, multilineTextAlignment, lineLimit, buttonStyle, disabled, hidden, offset, scaleEffect
- Font: largeTitle, title, title2, title3, headline, body, callout, subheadline, footnote, caption, system size
- Color: red, orange, yellow, green, mint, teal, cyan, blue, indigo, purple, pink, brown, white, black, gray, primary, secondary + hex
- State: @State private var x dan aksi count plus/minus, toggle
SF Symbols
Mapping systemName → Lucide React. Contoh: heart.fill → Heart, swift → Zap, star.fill → Star. Jika tidak ditemukan, tampilkan placeholder HelpCircle dengan tooltip nama asli.
Batasan
Preview adalah simulasi. Tidak menjalankan Swift compiler, tidak support ForEach kompleks, NavigationView, animation modifier, atau custom Color asset. Untuk hasil native, kompilasi di Xcode.