Skip to content

Commit 1fad339

Browse files
authored
Fix build with Xcode 16 (simonbs#375)
Prior to this, Xcode 16 was unable to infer the type of the variable (while Xcode 15 was), so the lookup to `reversed()` was ambiguous. This adds `String` as the inferred type, so that the call to `reversed()` is no longer ambiguous.
1 parent 81e23a9 commit 1fad339

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Runestone/Library/UITextInput+Helpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import UIKit
66
extension UITextInput where Self: NSObject {
77
var sbs_textSelectionDisplayInteraction: UITextSelectionDisplayInteraction? {
88
let interactionAssistantKey = "int" + "ssAnoitcare".reversed() + "istant"
9-
let selectionViewManagerKey = "les_".reversed() + "ection" + "reganaMweiV".reversed()
9+
let selectionViewManagerKey: String = "les_".reversed() + "ection" + "reganaMweiV".reversed()
1010
guard responds(to: Selector(interactionAssistantKey)) else {
1111
return nil
1212
}

0 commit comments

Comments
 (0)