Text("AI Generated ✨")
.akAIButtonLabelButton {
// AI action
} label: {
HStack {
Image(systemName: "sparkles")
Text("Generate with AI")
}
}
.akAIButtonText("Card Content")
.akCard(
radius: .medium,
tint: Color.blue.opacity(0.1),
padding: .large
)ZStack {
AKMysticalBackgroundView()
// Your content here
VStack {
Text("Welcome")
}
}
.ignoresSafeArea()
// Or use the modifier:
ContentView()
.makeAkMysticalBackgroundCircle()
.foregroundStyle(.blue)
.frame(width: 50, height: 50)
.akSelected(
isColorSelected,
radius: .circular,
tint: Color.white
)
.onTapGesture {
isColorSelected.toggle()
}// Loading state
VStack {
Text("Loading...")
.font(.title)
Text(String(repeating: "Content", count: 5))
.redacted(reason: .placeholder)
}
.shimmering()
// Custom gradient
Text("Premium Feature")
.shimmering(
gradient: Gradient(colors: [
.clear, .orange, .white, .green, .clear
]),
bandSize: 0.5,
mode: .overlay()
)ScrollView {
VStack(spacing: 0) {
// Stretchy header
Image("profileHeader")
.resizable()
.aspectRatio(contentMode: .fill)
.makeStretchy(height: 300)
// Content
VStack {
Text("Profile Content")
}
.padding()
}
}
.coordinateSpace(name: "AKStretchyScroll")
.ignoresSafeArea(edges: .top)@State private var isLoading = true
AuroraLoadingView(animationToggle: $isLoading)
.frame(width: 300, height: 300)
.clipShape(RoundedRectangle(cornerRadius: 20))@State private var isProcessing = false
RoundedRectangle(cornerRadius: 12)
.foregroundStyle(.ultraThinMaterial)
.frame(width: 200, height: 200)
.akMeshingAIProgressView(
triggerAnimation: $isProcessing,
radius: 12
)
.onTapGesture {
isProcessing.toggle()
}