Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Make all required NSCoder initialisers fatalError()
Browse files Browse the repository at this point in the history
  • Loading branch information
hebertialmeida committed Aug 12, 2016
1 parent 982e53a commit 5c4d5a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Source/FolioReaderChapterListCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ class FolioReaderChapterListCell: UITableViewCell {
}

required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
fatalError("storyboards are incompatible with truth and beauty")
}
}
8 changes: 4 additions & 4 deletions Source/FolioReaderContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ public class FolioReaderContainer: UIViewController {

// MARK: - Init

required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}

/**
Init a Container

Expand Down Expand Up @@ -66,6 +62,10 @@ public class FolioReaderContainer: UIViewController {
}
}

required public init?(coder aDecoder: NSCoder) {
fatalError("storyboards are incompatible with truth and beauty")
}

// MARK: - View life cicle

override public func viewDidLoad() {
Expand Down
2 changes: 1 addition & 1 deletion Source/FolioReaderPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class FolioReaderPage: UICollectionViewCell, UIWebViewDelegate, UIGestureRecogni
}

required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
fatalError("storyboards are incompatible with truth and beauty")
}

deinit {
Expand Down
2 changes: 1 addition & 1 deletion Source/FolioReaderPageIndicator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FolioReaderPageIndicator: UIView {
}

required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
fatalError("storyboards are incompatible with truth and beauty")
}

func reloadView(updateShadow updateShadow: Bool) {
Expand Down
2 changes: 1 addition & 1 deletion Source/PageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PageViewController: UIPageViewController {
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
fatalError("storyboards are incompatible with truth and beauty")
}

override func viewDidLoad() {
Expand Down

0 comments on commit 5c4d5a8

Please sign in to comment.