mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 23:54: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/extensions/ActionBar.swift
Normal file
30
DynamicIsland/extensions/ActionBar.swift
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
//
|
||||
// ActionBar.swift
|
||||
// boringNotch
|
||||
//
|
||||
// Created by Richard Kunkli on 15/09/2024.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
extension View {
|
||||
func actionBar<Content: View>(padding: CGFloat = 10, @ViewBuilder content: () -> Content) -> some View {
|
||||
self
|
||||
.padding(.bottom, 24)
|
||||
.overlay(alignment: .bottom) {
|
||||
VStack(spacing: -1) {
|
||||
Divider()
|
||||
HStack(spacing: 0) {
|
||||
content()
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
}
|
||||
.frame(height: 16)
|
||||
.padding(.vertical, 4)
|
||||
.padding(.horizontal, padding)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
.frame(height: 24)
|
||||
.background(.separator)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue