New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xcode 10 compile issue with property text #786
Comments
same issue when comparing the |
@alejandrodau I solve the issue by case text as string |
same problem, solve with below code.
|
I encountered the same problem with Xcode 10.1 (works fine with Xcode 9.4.1) where the text property appears to be compiled as Any instead of as String, giving the error "Value of type 'Any' has no member 'nsRangeFromRange'" . So a workaround for the time being is to cast text as String:
|
when i compile with xcode 10 beta , lable's attribute text has error report (Value of type 'Any' has no member 'range') ,it's ok when compile with xcode 9.3
guard let range = self.infoLabel.text?.range(of: freeText) else { return }
The text was updated successfully, but these errors were encountered: