fix: set default image height
This commit is contained in:
parent
3de7a4ba2d
commit
d4c9957d19
|
@ -344,6 +344,7 @@ public class TextFormater : NSObject {
|
|||
0 != (_widthstring as NSString).doubleValue {
|
||||
if _widthstring.contains("%") {
|
||||
width = _width * CGFloat((_widthstring as NSString).doubleValue) / 100
|
||||
height = _height * CGFloat((_widthstring as NSString).doubleValue) / 100
|
||||
} else {
|
||||
width = CGFloat((_widthstring as NSString).doubleValue)
|
||||
height = _height * width / _width
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TextFormater'
|
||||
s.version = '1.2.2'
|
||||
s.version = '1.2.3'
|
||||
s.summary = 'Convert String to NSAttributedString'
|
||||
|
||||
s.description = <<-DESC
|
||||
|
|
Loading…
Reference in New Issue