mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-29 08:04:32 +00:00
Restored files from old Mac, force pushing
This commit is contained in:
parent
5dd95228b8
commit
5040381840
126 changed files with 10431 additions and 67 deletions
30
DynamicIsland/components/Tabs/TabButton.swift
Normal file
30
DynamicIsland/components/Tabs/TabButton.swift
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
//
|
||||
// TabButton.swift
|
||||
// boringNotch
|
||||
//
|
||||
// Created by Hugo Persson on 2024-08-24.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct TabButton: View {
|
||||
let label: String
|
||||
let icon: String
|
||||
let selected: Bool
|
||||
let onClick: () -> Void
|
||||
|
||||
var body: some View {
|
||||
Button(action: onClick) {
|
||||
Image(systemName: icon)
|
||||
.padding(.horizontal, 15)
|
||||
.contentShape(Capsule())
|
||||
}
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
TabButton(label: "Home", icon: "tray.fill", selected: true) {
|
||||
print("Tapped")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue