-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable backwards compatibility when compiling with Xcode 14 (#329)
* Enable backwards compatibility when compiling with Xcode 14 This will still mean that the bug addressed in #314 will persist, but will allow consumers bound to older Xcode versions to continue to update the rest of the codebase and its dependencies * Add end-of-file new lines * Safe-guard usage as well
- Loading branch information
1 parent
64aecb2
commit 688fa07
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Sources/Runestone/Library/UITextSelectionDisplayInteraction+Helpers.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import UIKit | ||
|
||
#if compiler(>=5.9) | ||
|
||
@available(iOS 17, *) | ||
extension UITextSelectionDisplayInteraction { | ||
func sbs_enableCursorBlinks() { | ||
setValue(true, forKey: "rosruc".reversed() + "Blinks") | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters