### SwiftUI ContentView Usage Example
Source: https://context7.com/tamoza4/apple-ui-design/llms.txt
An example SwiftUI `ContentView` demonstrating the usage of `GlassNavBar`, `GlassCard`, `AppleButton`, and `StaggeredAnimation`. It sets up a basic layout with a background color and a VStack containing these components. Dependencies include SwiftUI framework.
```swift
// MARK: - Usage Example
struct ContentView: View {
var body: some View {
ZStack {
Color(red: 0.98, green: 0.98, blue: 0.99) // #fbfbfd
.ignoresSafeArea()
VStack(spacing: 32) {
GlassNavBar(title: "Dashboard")
GlassCard {
VStack(alignment: .leading, spacing: 16) {
Text("Welcome Back")
.font(.system(size: 40, weight: .semibold))
.tracking(-0.8)
Text("Your daily summary is ready")
.font(.system(size: 17))
.foregroundColor(.secondary)
AppleButton(title: "View Details") {
// Action
}
}
}
.modifier(StaggeredAnimation(index: 0))
Spacer()
}
}
}
}
```
--------------------------------
### Define Apple Glassmorphism Materials
Source: https://github.com/tamoza4/apple-ui-design/blob/main/apple-ui-design/SKILL.md
CSS implementation of Apple's glassmorphism effect for elevated surfaces. Includes backdrop-filter, saturation, and conditional borders for both Light and Dark modes.
```css
/* Light Mode Material */
.glass-light {
background: rgba(255, 255, 255, 0.72);
backdrop-filter: blur(20px) saturate(180%);
border: 0.5px solid rgba(0, 0, 0, 0.1);
}
/* Dark Mode Material */
.glass-dark {
background: rgba(28, 28, 30, 0.7);
backdrop-filter: blur(20px) saturate(180%);
border: 0.5px solid rgba(255, 255, 255, 0.15);
}
```
--------------------------------
### React Apple Dashboard Example with UI Components
Source: https://context7.com/tamoza4/apple-ui-design/llms.txt
Demonstrates the usage of the custom Apple UI components (GlassCard, AppleButton) and the useStaggeredAnimation hook within a sample dashboard layout. It showcases fixed navigation with glassmorphism and styled headings, applying Apple's design language.
```tsx
// Usage Example
export const AppleDashboard: React.FC = () => {
const heroAnimation = useStaggeredAnimation(0);
const cardAnimation = useStaggeredAnimation(1);
return (
{/* Glass Navbar */}