malcommac / SwiftRichString

👩‍🎨 Elegant Attributed String composition in Swift sauce
MIT License
3.1k stars 211 forks source link

There is a problem with the method running : convenience init?(image: Image?, bounds: String? = nil) #146

Open HelloRyanCR7 opened 6 months ago

HelloRyanCR7 commented 6 months ago

AttributedString(image: R.image.eye_open(), bounds: NSCoder.string(for: CGRect(x: 0, y: 20, width: 25, height: 25)))!

bounds string cannot generate CGRect

HelloRyanCR7 commented 6 months ago

Looking at the source code requires this parameter format:"0,0,25,25"