Skip to content

Commit

Permalink
Fix build with Xcode 16 (simonbs#375)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eliperkins authored and migueldeicaza committed Jun 11, 2024
1 parent 3afb8f0 commit f13d1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Runestone/Library/UITextInput+Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import UIKit
extension UITextInput where Self: NSObject {
var sbs_textSelectionDisplayInteraction: UITextSelectionDisplayInteraction? {
let interactionAssistantKey = "int" + "ssAnoitcare".reversed() + "istant"
let selectionViewManagerKey = "les_".reversed() + "ection" + "reganaMweiV".reversed()
let selectionViewManagerKey: String = "les_".reversed() + "ection" + "reganaMweiV".reversed()
guard responds(to: Selector(interactionAssistantKey)) else {
return nil
}
Expand Down

0 comments on commit f13d1e1

Please sign in to comment.