Skip to content

Commit

Permalink
Add corner radius based on content view's corner radius.
Browse files Browse the repository at this point in the history
  • Loading branch information
fyan0730 committed Apr 30, 2019
1 parent f558124 commit a9731f0
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 a9731f0

Please sign in to comment.