'Non-@objc property 'borderColor' is declared in extension of 'UIView' and cannot be overridden
I am trying to update my ios's project from xcode 12.2 to 13.1, but i am getting the next error
Non-@objc property 'borderColor' is declared in extension of 'UIView' and cannot be overridden
When i execute this one in the version 12.2 xcode, it is not showing this error
The code is
import Foundation
import UIKit
open class MaterialTextField: UITextField {
// MARK: - Tooltip
fileprivate var isTipRaised = false
@IBInspectable override var borderColor: UIColor? {
didSet {
self.setColorAppearance(self.defaultColor)
}
}
}
The screenshot is
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

