1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30
yattee/Shared/Player/Controls/ControlBackgroundModifier.swift

17 lines
336 B
Swift
Raw Normal View History

import Foundation
import SwiftUI
struct ControlBackgroundModifier: ViewModifier {
var enabled = true
var edgesIgnoringSafeArea = Edge.Set()
func body(content: Content) -> some View {
if enabled {
2023-07-01 22:08:11 +05:30
content
2022-08-06 18:56:59 +05:30
.background(.thinMaterial)
} else {
content
}
}
}