Post not yet marked as solved
Post marked as unsolved with 15 replies, 6,895 views
Hi.According to article "Start Developing iOS Apps (Swift) / Implement a Custom Control"https://developer.apple.com/library/archive/referencelibrary/GettingStarted/DevelopiOSAppsSwift/ImplementingACustomControl.html#//apple_ref/doc/uid/TP40015214-CH19-SW1i implemented all the steps in latest XCode environment but stubbed to one issue: when i update any button's property in my created RatingControl it is not affected imediatly on user interface. Only after i click on any button i can see new button's property updated. I even try to force layout update procedurebutton.superview?.superview?.layoutIfNeeded()button.superview?.superview?.setNeedsDisplay()but without succeed.Could someone advice me what do i need for imediatly apply changes on UI.Thanks!