1
0
mirror of https://github.com/yattee/yattee.git synced 2025-04-27 15:30:33 +05:30
yattee/Backports/ListRowSeparator+Backport.swift
Arkadiusz Fal 94915b0496 Revert "Drop iOS 14 and macOS 11 support"
This reverts commit dcef7f47ff5194ccf6635c3f626fef1daee05514.
2023-10-15 13:35:23 +02:00

16 lines
371 B
Swift

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
} else {
content
}
}
}