Material design IOS的材质组件:MDCBottomAppBarView

Material design IOS的材质组件:MDCBottomAppBarView,material-design,Material Design,我已经查过了,但是没有找到任何关于这个的信息 在设置MDCBottomAppBarView的高值时,有没有办法在MDCBottomAppBarView中设置文本和图像?您可以通过setImage设置图像: let appBarBottom = MDCBottomAppBarView() appBarBottom.floatingButton.backgroundColor = UIColor.white // Change this if you have another color icon

我已经查过了,但是没有找到任何关于这个的信息


在设置MDCBottomAppBarView的高值时,有没有办法在MDCBottomAppBarView中设置文本和图像?

您可以通过
setImage
设置图像:

let appBarBottom = MDCBottomAppBarView()
appBarBottom.floatingButton.backgroundColor = UIColor.white // Change this if you have another color icon
appBarBottom.floatingButton.setImage(UIImage(named: "IMAGE NAME"), for: UIControl.State.normal)