1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 06:40:32 +05:30
yattee/Backports/ListRowSeparator+Backport.swift

16 lines
371 B
Swift
Raw Normal View History

2022-11-19 02:57:13 +05:30
import Foundation
import SwiftUI
extension Backport where Content: View {
@ViewBuilder func listRowSeparator(_ visible: Bool) -> some View {
if #available(iOS 15, macOS 13, *) {
content
#if !os(tvOS)
.listRowSeparator(visible ? .visible : .hidden)
#endif
2022-11-19 02:57:13 +05:30
} else {
content
}
}
}