mirror of
https://github.com/samsonjs/ControlCenter_iOS.git
synced 2026-03-25 09:15:48 +00:00
44 lines
1 KiB
Swift
44 lines
1 KiB
Swift
//
|
|
// ContentView.swift
|
|
// ControlCenter_iOS
|
|
//
|
|
// Created by Sami Samhuri on 2020-06-25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
var body: some View {
|
|
FancyBackground {
|
|
VStack(alignment: .leading) {
|
|
HStack {
|
|
WirelessControls()
|
|
VStack {
|
|
DoNotDisturbControl()
|
|
HStack {
|
|
KeyboardBrightnessControl(width: 72, height: 72)
|
|
AirPlayControl(width: 72, height: 72)
|
|
}
|
|
}
|
|
}
|
|
DisplayControl()
|
|
SoundControl()
|
|
NowPlayingControl()
|
|
BatteryControl()
|
|
}
|
|
.padding()
|
|
.frame(maxWidth: 330)
|
|
}
|
|
}
|
|
}
|
|
|
|
struct ContentView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
Group {
|
|
ContentView()
|
|
|
|
ContentView()
|
|
.preferredColorScheme(.dark)
|
|
}
|
|
}
|
|
}
|