mirror of
https://github.com/yattee/yattee.git
synced 2025-11-13 05:38:45 +00:00
Resolves 130+ violations including deployment target checks, code style issues, and formatting inconsistencies. Adds SwiftLint disable comments for compiler-required availability checks while maintaining deployment target compliance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
398 B
Swift
15 lines
398 B
Swift
import Foundation
|
|
import SwiftUI
|
|
|
|
extension Backport where Content: View {
|
|
@ViewBuilder func playbackSettingsPresentationDetents() -> some View {
|
|
// swiftlint:disable:next deployment_target
|
|
if #available(iOS 16.0, macOS 13.0, tvOS 16.0, *) {
|
|
content
|
|
.presentationDetents([.height(400), .large])
|
|
} else {
|
|
content
|
|
}
|
|
}
|
|
}
|