forked from shadowfacts/Tusker
21 lines
379 B
Swift
21 lines
379 B
Swift
//
|
|
// View+ForwardsCompat.swift
|
|
// ComposeUI
|
|
//
|
|
// Created by Shadowfacts on 3/25/23.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
extension View {
|
|
@available(iOS, obsoleted: 16.0)
|
|
@ViewBuilder
|
|
func scrollDisabledIfAvailable(_ disabled: Bool) -> some View {
|
|
if #available(iOS 16.0, *) {
|
|
self.scrollDisabled(disabled)
|
|
} else {
|
|
self
|
|
}
|
|
}
|
|
}
|