mirror of
https://github.com/samsonjs/ControlCenter_iOS.git
synced 2026-03-25 09:15:48 +00:00
36 lines
873 B
Swift
36 lines
873 B
Swift
//
|
|
// BatteryControl.swift
|
|
// ControlCenter_iOS
|
|
//
|
|
// Created by Sami Samhuri on 2020-06-25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct BatteryControl: View {
|
|
var body: some View {
|
|
ControlBackground {
|
|
HStack {
|
|
Image(systemName: "battery.100")
|
|
VStack(alignment: .leading) {
|
|
Text("Battery")
|
|
.foregroundColor(Color(.secondaryLabel))
|
|
.font(.system(size: 11))
|
|
.fontWeight(.bold)
|
|
Text("85%")
|
|
.font(.system(size: 11))
|
|
.fontWeight(.bold)
|
|
}
|
|
}
|
|
.padding(8)
|
|
}
|
|
}
|
|
}
|
|
|
|
struct BatteryControl_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
LightAndDarkPreviews {
|
|
BatteryControl()
|
|
}
|
|
}
|
|
}
|