You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in order to customize the attachment manger we need to make the tintColor property assignable. Right now the backgorund color for the delete button will always be blue.
if we want to change it such as:
let manager = AttachmentManager()
manager.tintColor = UIColor.green
we get an error: Cannot assign to property: 'tintColor' is a get-only property"
a solution could look like:
open var tintColor: UIColor {
get {
if #available(iOS 13, *) {
return .link
} else {
return .systemBlue
}
}
set {
// Implementation to set the value of tintColor
}
}
The text was updated successfully, but these errors were encountered:
in order to customize the attachment manger we need to make the tintColor property assignable. Right now the backgorund color for the delete button will always be blue.
if we want to change it such as:
we get an error: Cannot assign to property: 'tintColor' is a get-only property"
a solution could look like:
The text was updated successfully, but these errors were encountered: