Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Swift5 和 Xcode-10.2,
如何从 SVG-xml 中表示的数据中获取 UIImage ?
我尝试使用 SwiftSVG。
这是我的代码:
import SwiftSVG let ui = UIView(SVGData: data) ui.frame = self.imgLogo.frame ui.contentMode = .scaleAspectFit self.imgLogo.addSubview(ui)