mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Details panels in controls
This commit is contained in:
12
Backports/ScrollContentBackground+Backport.swift
Normal file
12
Backports/ScrollContentBackground+Backport.swift
Normal file
@@ -0,0 +1,12 @@
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
extension Backport where Content: View {
|
||||
@ViewBuilder func scrollContentBackground(_ visibility: Bool) -> some View {
|
||||
if #available(iOS 16.0, macOS 13.0, tvOS 16.0, *) {
|
||||
content.scrollContentBackground(visibility ? .visible : .hidden)
|
||||
} else {
|
||||
content
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user