From ec24bce7d829f8386ed3afcd3a2e1e4db895bb36 Mon Sep 17 00:00:00 2001 From: Drew Olbrich Date: Sun, 27 Aug 2023 09:33:48 -0700 Subject: [PATCH] Use visionOS for OS version instead of xrOS --- Sources/ScrollingContentViewController/KeyboardObserver.swift | 2 +- .../ScrollViewBounceController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ScrollingContentViewController/KeyboardObserver.swift b/Sources/ScrollingContentViewController/KeyboardObserver.swift index 6a0541f..bb72df3 100644 --- a/Sources/ScrollingContentViewController/KeyboardObserver.swift +++ b/Sources/ScrollingContentViewController/KeyboardObserver.swift @@ -96,7 +96,7 @@ internal class KeyboardObserver: NSObject { scrollViewFilter.submitKeyboardFrameEvent(keyboardFrameEvent) let keyboardDismissModeIsDefined: Bool -#if !os(xrOS) +#if !os(visionOS) keyboardDismissModeIsDefined = scrollView.keyboardDismissMode != .none #else // keyboardDismissMode is unavailable on visionOS. diff --git a/Sources/ScrollingContentViewController/ScrollViewBounceController.swift b/Sources/ScrollingContentViewController/ScrollViewBounceController.swift index e9e0f5d..cbfa73c 100644 --- a/Sources/ScrollingContentViewController/ScrollViewBounceController.swift +++ b/Sources/ScrollingContentViewController/ScrollViewBounceController.swift @@ -30,7 +30,7 @@ internal class ScrollViewBounceController { return } -#if !os(xrOS) +#if !os(visionOS) guard scrollView.keyboardDismissMode != .none else { return }