From 6f03ccb71b1f7868c08167fe4ed94d13100d6cbc Mon Sep 17 00:00:00 2001 From: Natan Rolnik Date: Wed, 15 May 2019 15:02:15 +0300 Subject: [PATCH] When disabling, set containerView alpha (and not button's alpha itself) --- TORoundedButton/TORoundedButton.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TORoundedButton/TORoundedButton.m b/TORoundedButton/TORoundedButton.m index f0354c4..46de619 100644 --- a/TORoundedButton/TORoundedButton.m +++ b/TORoundedButton/TORoundedButton.m @@ -526,7 +526,7 @@ - (void)setEnabled:(BOOL)enabled { [super setEnabled:enabled]; - self.alpha = enabled ? 1 : 0.4; + self.containerView.alpha = enabled ? 1 : 0.4; } #pragma mark - Graphics Handling -