Skip to content

Commit

Permalink
GLI-3964 Fix bug that checks text for italics (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmartinez6 authored and SerenadeX committed Jun 26, 2018
1 parent bc88be2 commit 85723e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RichTextVC-iOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "RichTextVC-iOS"
s.version = "3.0.1"
s.version = "3.0.2"
s.summary = "A Rich Text ViewController for iOS."

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/RichTextViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ open class RichTextViewController: UIViewController {
font = font ?? dictionary[NSAttributedStringKey.font] as? UIFont
}

return font?.fontName == boldFont?.fontName || font?.fontName == boldItalicFont?.fontName
return font?.fontName == italicFont?.fontName || font?.fontName == boldItalicFont?.fontName
}

open func toggleItalic() {
Expand Down

0 comments on commit 85723e8

Please sign in to comment.