Add missing stroke to loading state of link preview view.

pull/1/head
Matthew Chen 6 years ago
parent 82ceb044e3
commit d2347f2b0f

@ -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

Loading…
Cancel
Save