mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 23:54:32 +00:00
Applied latest changes from boring.notch
This commit is contained in:
parent
13a2ff0e20
commit
bad481588b
5 changed files with 453 additions and 0 deletions
|
|
@ -0,0 +1,61 @@
|
|||
//
|
||||
// OnboardingFinishView.swift
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Alexander on 2025-06-23.
|
||||
//
|
||||
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct OnboardingFinishView: View {
|
||||
let onFinish: () -> Void
|
||||
let onOpenSettings: () -> Void
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 20) {
|
||||
Spacer()
|
||||
|
||||
Image(systemName: "sparkles")
|
||||
.font(.system(size: 60))
|
||||
.foregroundColor(.accentColor)
|
||||
.padding()
|
||||
|
||||
Text("You're All Set!")
|
||||
.font(.largeTitle)
|
||||
.fontWeight(.bold)
|
||||
|
||||
Text("You can now enjoy the app. If you want to tweak things further, you can always visit the settings.")
|
||||
.font(.body)
|
||||
.foregroundColor(.secondary)
|
||||
.multilineTextAlignment(.center)
|
||||
.padding(.horizontal, 40)
|
||||
|
||||
Spacer()
|
||||
Spacer()
|
||||
|
||||
VStack(spacing: 12) {
|
||||
Button(action: onOpenSettings) {
|
||||
Label("Customize in Settings", systemImage: "gear")
|
||||
.controlSize(.large)
|
||||
}
|
||||
.controlSize(.large)
|
||||
|
||||
Button("Finish", action: onFinish)
|
||||
.buttonStyle(.borderedProminent)
|
||||
.controlSize(.large)
|
||||
.keyboardShortcut(.defaultAction)
|
||||
}
|
||||
.padding(24)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
.background(
|
||||
VisualEffectView(material: .underWindowBackground, blendingMode: .behindWindow)
|
||||
.ignoresSafeArea()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
OnboardingFinishView(onFinish: { }, onOpenSettings: { })
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue