0
    delete.image = UIGraphicsImageRenderer(size: CGSize(width: 28, height: 28)).image(actions: { (_) in

        UIImage(named: "Trash Icon")?.draw(in: CGRect(x: 0, y: 0, width: 28, height: 28))

    })

使用 CGRect,.pdf 图标是拉伸的并且不保留其纵横比,有没有办法在纵横比适合模式下“绘制”?

4

0 回答 0