Skip to content

Commit

Permalink
Make functions overrideable. (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmshelley authored and SerenadeX committed Nov 9, 2016
1 parent 7aa13e9 commit 8f71135
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Example/RichTextVC-iOS-Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 0800;
LastUpgradeCheck = 0810;
ORGANIZATIONNAME = LyokoTech;
TargetAttributes = {
5959A6811CCAA4CC005031E6 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
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 = "2.0.0"
s.version = "2.0.1"
s.summary = "A Rich Text ViewController for iOS."

# This description is used to generate tags and improve search results.
Expand Down
6 changes: 3 additions & 3 deletions src/Classes/RichTextViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ open class RichTextViewController: UIViewController {

return listParagraphStyle
}()
fileprivate var defaultListAttributes: [String: AnyObject]? {
fileprivate var defaultListAttributes: [String: Any]? {
guard let regularFont = regularFont else { return nil }

return [NSFontAttributeName: regularFont, NSParagraphStyleAttributeName: defaultListParagraphStyle]
Expand Down Expand Up @@ -733,7 +733,7 @@ open class RichTextViewController: UIViewController {

extension RichTextViewController: UITextViewDelegate {

public func textViewDidChangeSelection(_ textView: UITextView) {
open func textViewDidChangeSelection(_ textView: UITextView) {
disableBold = false
disableItalic = false

Expand All @@ -742,7 +742,7 @@ extension RichTextViewController: UITextViewDelegate {
previousSelection = textView.selectedRange
}

public func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {
open func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {
var changed = false

switch text {
Expand Down

0 comments on commit 8f71135

Please sign in to comment.