首页 > 解决方案 > bottomsheet 谷歌材料库不适用于 iOS 14

问题描述

曾经在 iOS 13 中运行的代码突然在 iOS 14 中无法运行。

预期结果是显示底部表。然而,真正的结果是我们只是得到了一个巨大的灰色覆盖层,上面什么都没有显示。

let vc = // some view controller.
let bottomSheet = MDCBottomSheetController(contentViewController: vc)
present(bottomSheet, animated: true, completion: nil)

标签: swiftmaterial-components-ios

解决方案


推荐阅读