Skip to content

Commit

Permalink
Merge pull request #220 from sagendaz/master
Browse files Browse the repository at this point in the history
added circular radius to the circleIconView layer
  • Loading branch information
vikmeup authored Aug 6, 2016
2 parents a1c1683 + f0e9dee commit a154cba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SCLAlertView/SCLAlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,8 @@ public class SCLAlertView: UIViewController {
circleView.addSubview(circleIconView!)
let x = (appearance.kCircleHeight - appearance.kCircleIconHeight) / 2
circleIconView!.frame = CGRectMake( x, x, appearance.kCircleIconHeight, appearance.kCircleIconHeight)
circleIconView?.layer.cornerRadius = circleIconView!.bounds.height / 2
circleIconView?.layer.masksToBounds = true

for txt in inputs {
txt.layer.borderColor = viewColor.CGColor
Expand Down

0 comments on commit a154cba

Please sign in to comment.