Why PKAddPassButton isn't showing icon? This happens in both cases when button is single line expanding to entire stack view width and when it is double line inside UIView container with centreX constraint. Setting frame or width doesn't change anything.
private lazy var addPassButton = UIViewFactory.create.container().apply {
let button = PKAddPassButton()
$0.addSubview(button)
button.snp.makeConstraints { make in
make.top.bottom.equalToSuperview().inset(16.0)
make.centerX.equalToSuperview()
}
}
On real device all works correctly. Icon not showing only on simulator.