Michał Ziobro
Michał Ziobro

Reputation: 11812

PKAddPassButton not showing icon at all

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

Upvotes: 3

Views: 1173

Answers (1)

aturan23
aturan23

Reputation: 5410

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

Upvotes: 3

Related Questions