@@ -89,12 +89,41 @@ open class NativeAvatarView: SPView {
8989 }
9090 }
9191
92- open var placeholderImage = UIImage . system ( " person.crop.circle.fill " , font: . systemFont( ofSize: 80 , weight: . medium) )
93- open var placeholderColorise = SPDimmedButton . Colorise. init ( content: . init( light: . systemGray3, dark: . systemGray2) , background: . clear)
94- open var indicatorAddImage = UIImage . system ( " plus " , font: . preferredFont( forTextStyle: . title3, weight: . bold) )
95- open var indicatorAddColorise = SPDimmedButton . Colorise. init ( content: . white, background: . systemGreen)
96- open var indicatorEditImage = UIImage . system ( " pencil " , font: . preferredFont( forTextStyle: . title3, weight: . bold) )
97- open var indicatorEditColorise = SPDimmedButton . Colorise. init ( content: . white, background: . systemBlue)
92+ open var placeholderImage = UIImage . system ( " person.crop.circle.fill " , font: . systemFont( ofSize: 80 , weight: . medium) ) {
93+ didSet {
94+ placeholderButton. setImage ( placeholderImage)
95+ }
96+ }
97+
98+ open var placeholderColorise = SPDimmedButton . Colorise. init ( content: . init( light: . systemGray3, dark: . systemGray2) , background: . clear) {
99+ didSet {
100+ placeholderButton. applyDefaultAppearance ( with: placeholderColorise)
101+ }
102+ }
103+
104+ open var indicatorAddImage = UIImage . system ( " plus " , font: . preferredFont( forTextStyle: . title3, weight: . bold) ) {
105+ didSet {
106+ updateEditAppearance ( )
107+ }
108+ }
109+
110+ open var indicatorAddColorise = SPDimmedButton . Colorise. init ( content: . white, background: . systemGreen) {
111+ didSet {
112+ updateEditAppearance ( )
113+ }
114+ }
115+
116+ open var indicatorEditImage = UIImage . system ( " pencil " , font: . preferredFont( forTextStyle: . title3, weight: . bold) ) {
117+ didSet {
118+ updateEditAppearance ( )
119+ }
120+ }
121+
122+ open var indicatorEditColorise = SPDimmedButton . Colorise. init ( content: . white, background: . systemBlue) {
123+ didSet {
124+ updateEditAppearance ( )
125+ }
126+ }
98127
99128 // MARK: - Init
100129
0 commit comments