Skip to content

Commit 1bfb96d

Browse files
committed
cocoapod fix
1 parent cc6b287 commit 1bfb96d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

AttributedTextView.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'AttributedTextView'
3-
s.version = '1.2.0'
3+
s.version = '1.2.1'
44
s.license = { :type => "MIT", :file => "LICENSE" }
55
s.summary = 'Easiest way to create an attributed UILabel or UITextView (with support for multiple links and HTML)'
66
s.homepage = 'https://github.com/evermeer/AttributedTextView'

Sources/AttributedTextView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import UIKit
8484
self.isEditable = false
8585
}
8686
if let color = _attributer?.linkColor {
87-
self.linkTextAttributes = [NSAttributedString.Key.foregroundColor: color]
87+
self.linkTextAttributes = [NSAttributedString.Key.foregroundColor.rawValue: color as Any]
8888
}
8989
}
9090
}

Sources/Attributer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ open class Attributer {
618618
underline the active range
619619
*/
620620
open var underline: Attributer {
621-
return applyUnderline(NSUnderlineStyle.single)
621+
return applyUnderline(NSUnderlineStyle.styleSingle)
622622
}
623623

624624
/**

0 commit comments

Comments
 (0)