I am new to Swift. I created the application in Swift 4, but when I change SWIFT_VERSION to Swift 3.0, I get an error message in my code.
The type 'String' does not have a member 'foregroundColor'.
How can I convert this to the current Swift syntax?
the code:
if let p = placeholder {
let place = NSAttributedString(string: p, attributes:
attributedPlaceholder = place
textColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
user7582407
source
share