Skip to content

Commit

Permalink
Merge pull request alexaubry#4 from adriansoghoian/fixBackgroundViewC…
Browse files Browse the repository at this point in the history
…ornerRadius

Fix corner radius issue with background view
  • Loading branch information
adriansoghoian authored Feb 23, 2018
2 parents 1588a60 + b19c525 commit c3ff6d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Support/BulletinViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ extension BulletinViewController {

contentView.accessibilityViewIsModal = true
contentView.translatesAutoresizingMaskIntoConstraints = false
contentView.clipsToBounds = true
contentStackView.translatesAutoresizingMaskIntoConstraints = false

view.addSubview(contentView)
Expand Down Expand Up @@ -231,7 +232,6 @@ extension BulletinViewController {

// background image
if let backgroundView = manager.cardBackgroundView {
backgroundView.layer.cornerRadius = contentView.layer.cornerRadius
contentView.addSubview(backgroundView)
contentView.sendSubview(toBack: backgroundView)
NSLayoutConstraint.activate([
Expand Down Expand Up @@ -444,7 +444,6 @@ extension BulletinViewController {
}
}
}

contentView.layer.cornerRadius = cornerRadius

}
Expand Down

0 comments on commit c3ff6d0

Please sign in to comment.