Skip to content

Commit

Permalink
VisionOS compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk committed Dec 2, 2023
1 parent 88226af commit d9e968d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/Runestone/TextView/Core/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ open class TextView: UIScrollView {
textInputView.selectedTextRange = newValue
}
}

Check failure on line 200 in Sources/Runestone/TextView/Core/TextView.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
#if !os(visionOS)
/// The custom input accessory view to display when the receiver becomes the first responder.
override public var inputAccessoryView: UIView? {
get {
Expand All @@ -214,6 +216,8 @@ open class TextView: UIScrollView {
override public var inputAssistantItem: UITextInputAssistantItem {
textInputView.inputAssistantItem
}
#endif

Check failure on line 220 in Sources/Runestone/TextView/Core/TextView.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Trailing Whitespace Violation: Lines should not have trailing whitespace (trailing_whitespace)
/// Returns a Boolean value indicating whether this object can become the first responder.
override public var canBecomeFirstResponder: Bool {
!textInputView.isFirstResponder && isEditable
Expand Down Expand Up @@ -606,7 +610,9 @@ open class TextView: UIScrollView {
#endif
private let tapGestureRecognizer = QuickTapGestureRecognizer()
private var _inputAccessoryView: UIView?
#if !os(visionOS)
private let _inputAssistantItem = UITextInputAssistantItem()
#endif
private var isPerformingNonEditableTextInteraction = false
private var delegateAllowsEditingToBegin: Bool {
guard isEditable else {
Expand Down

0 comments on commit d9e968d

Please sign in to comment.