I have a following svg from which I want to display only one icon and re-size it
I visited couple of posts, but none of them is working for me.
I tried by following way:
var frameColorInfo = [String:UIColor]()
frameColorInfo["frameColor"] = logs.frameColor//.first
frameColorInfo["matColor"] = logs.matColor//.first
NSNotificationCenter.defaultCenter().postNotificationName("FrameSizeThings", object: nil, userInfo: frameColorInfo)
It would be great If somebody can help me with a working fiddle!
答案 0 :(得分:0)
SVG精灵表可以像这样轻松使用:
<use xlink:href="#icon-pacman"></use>
https://jsfiddle.net/xL8d31n9/
它比css sprite表更容易。