Add missing stroke to loading state of link preview view.

This commit is contained in:
Matthew Chen 2019-01-23 12:24:11 -05:00
parent 82ceb044e3
commit d2347f2b0f
1 changed files with 8 additions and 0 deletions

View File

@ -684,6 +684,14 @@ public class LinkPreviewView: UIStackView {
addArrangedSubview(activityIndicator)
let activityIndicatorSize: CGFloat = 25
activityIndicator.autoSetDimensions(to: CGSize(width: activityIndicatorSize, height: activityIndicatorSize))
// Stroke
let strokeView = UIView()
strokeView.backgroundColor = Theme.secondaryColor
self.addSubview(strokeView)
strokeView.autoPinWidthToSuperview(withMargin: 12)
strokeView.autoPinEdge(toSuperviewEdge: .bottom)
strokeView.autoSetDimension(.height, toSize: CGHairlineWidth())
}
// MARK: Events