swift - PKAddPassButton 根本不显示图标

标签 swift apple-wallet

为什么 PKAddPassButton 不显示图标? 当按钮是单行扩展到整个堆栈 View 宽度时,这两种情况都会发生 当它在具有 centreX 约束的 UIView 容器内是双线时。 设置框架或宽度不会改变任何东西。

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

最佳答案

在真实设备上一切正常。图标不仅在模拟器上显示。

关于swift - PKAddPassButton 根本不显示图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67382723/

相关文章:

apple-push-notifications - SendEmptyPushNotification 到 gateway.push.apple.com 不再工作

ios - 为什么某些 Apple Wallet 生成的 QR 码包含这么多额外的垃圾?

ios - 使用多个参数快速上传图像

ios - 在已持久化对象的 RLMArray 属性中插入对象?

apple-push-notifications - 如何使用新的 APNS HTTP2 流程让 Apple Pass 更新生效?

ios - 以编程方式将信用卡/银行卡添加到用户的苹果钱包

ios - Swift 4 中的视频动画

arrays - 如何快速将元素追加到二维数组中?

UITableViewHeaderView 默认卡在单元格上方,而不是上方