1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 06:10:32 +05:30
yattee/Backports/ListRowSeparator+Backport.swift
2022-12-04 13:32:28 +01:00

13 lines
322 B
Swift

import Foundation
import SwiftUI
extension Backport where Content: View {
@ViewBuilder func listRowSeparator(_ visible: Bool) -> some View {
if #available(iOS 15, macOS 12, tvOS 15, *) {
content.listRowSeparator(visible ? .visible : .hidden)
} else {
content
}
}
}