File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ - (void)parseConfig:(NSDictionary *)buttonConfig
109109 {
110110 [self setTitleColor: buttonConfig[@" textColor" ] forState: UIControlStateNormal];
111111 }
112+ if (buttonConfig[@" cornerRadius" ])
113+ {
114+ self.layer .cornerRadius = [buttonConfig[@" cornerRadius" ] floatValue ];
115+ }
112116 if ((buttonConfig[@" borderColor" ]) && (buttonConfig[@" borderWidth" ]))
113117 {
114118 self.layer .borderColor = ((UIColor*)buttonConfig[@" borderColor" ]).CGColor ;
@@ -118,10 +122,6 @@ - (void)parseConfig:(NSDictionary *)buttonConfig
118122 {
119123 self.layer .borderWidth = [buttonConfig[@" borderWidth" ] floatValue ];
120124 }
121- else if (buttonConfig[@" cornerRadius" ])
122- {
123- self.layer .cornerRadius = [buttonConfig[@" cornerRadius" ] floatValue ];
124- }
125125}
126126
127127#pragma mark - Helpers
You can’t perform that action at this time.
0 commit comments