PKAddPassButton not showing icon at all

999 Views Asked by At

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()
        }
    }
1

There are 1 best solutions below

0
On BEST ANSWER

On real device all works correctly. Icon not showing only on simulator.