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
Errors #104
Comments
I'm having the same issue. |
Both I can’t figure away around
…On Friday, October 6, 2017, lgryp ***@***.***> wrote:
I'm having the same issue.
Is it related to Swift 4 or IOS 11?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AV36ON0qfsMSZxv-sxVfNnogz78TxiA9ks5spm9rgaJpZM4Pvu2A>
.
|
I solved the issue by selecting Swift 4.0 syntax in the xcode build settings of my project. |
For anyone who had a tough time finding this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get these errors when trying run the build.
Cannot invoke 'draw' with an argument list of type '(in: CGRect, withAttributes: [NSAttributedStringKey : Any])’
NSString(string: code).draw(in: CGRect(origin: CGPoint(x: 0 + randomFloat(5), y: -15.5 + randomFloat(5)), size: randomImg.size), withAttributes: randomFontAttributes())
Type 'NSString' has no member 'font'
return [.font: randomFont(),
.kern: CGFloat(8) as NSObject,
.foregroundColor: OCRColor(red: 27/255 + randomFloat(0.2), green: 16/255 + randomFloat(0.2), blue: 16/255 + randomFloat(0.2), alpha: 80/100 + randomFloat(0.2)),
.paragraphStyle: paragraphStyle]
}
The text was updated successfully, but these errors were encountered: