Skip to content

Commit

Permalink
Cherry-pick 122f2bd. rdar://125747739
Browse files Browse the repository at this point in the history
    Try to fix the visionOS build
    https://bugs.webkit.org/show_bug.cgi?id=272007
    rdar://125747739

    Unreviewed build fix after 276898@main.

    * Source/WebKit/WebKitSwift/LinearMediaKit/LinearMediaKitExtras.swift:
    (PlayableViewController.wks_automaticallyDockOnFullScreenPresentation):
    (PlayableViewController.wks_dismissFullScreenOnExitingDocking):
    (PlayableViewController.wks_environmentPickerButtonViewController):

    Canonical link: https://commits.webkit.org/276915@main
  • Loading branch information
aestes authored and Mohsin Qureshi committed Apr 2, 2024
1 parent a347680 commit d8a8ff2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,36 @@ import UIKit
@objc extension PlayableViewController {
var wks_automaticallyDockOnFullScreenPresentation: Bool {
get {
#if canImport(LinearMediaKit, _version: 212)
#if canImport(LinearMediaKit, _version: 211.0.2)
self.automaticallyDockOnFullScreenPresentation
#else
false
#endif
}
set {
#if canImport(LinearMediaKit, _version: 212)
#if canImport(LinearMediaKit, _version: 211.0.2)
self.automaticallyDockOnFullScreenPresentation = newValue
#endif
}
}

var wks_dismissFullScreenOnExitingDocking: Bool {
get {
#if canImport(LinearMediaKit, _version: 212)
#if canImport(LinearMediaKit, _version: 211.0.2)
self.dismissFullScreenOnExitingDocking
#else
false
#endif
}
set {
#if canImport(LinearMediaKit, _version: 212)
#if canImport(LinearMediaKit, _version: 211.0.2)
self.dismissFullScreenOnExitingDocking = newValue
#endif
}
}

var wks_environmentPickerButtonViewController: UIViewController? {
#if canImport(LinearMediaKit, _version: 212)
#if canImport(LinearMediaKit, _version: 211.0.2)
self.environmentPickerButtonViewController
#else
nil
Expand Down

0 comments on commit d8a8ff2

Please sign in to comment.