Skip to content

Commit

Permalink
Merge pull request #1 from Intersection/Add_corner_radius
Browse files Browse the repository at this point in the history
Add corner radius based on content view's corner radius.
  • Loading branch information
fyan0730 authored Apr 30, 2019
2 parents f558124 + a9731f0 commit 60c9aed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ShimmerBlocks/Classes/ShimmerContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ private extension ShimmerContainer {
sectionSubviews.forEach { stackView.addArrangedSubview($0) }
containerView = stackView
}
containerView.layer.cornerRadius = data.view?.layer.cornerRadius ?? 0
containerView.clipsToBounds = true
return containerView
}

Expand Down

0 comments on commit 60c9aed

Please sign in to comment.