Skip to content

Commit

Permalink
Compiler error in Xcode Beta 5. Close #11, Close #10
Browse files Browse the repository at this point in the history
  • Loading branch information
vikmeup committed Aug 14, 2014
1 parent 05e95bc commit f671750
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Classes/SCLAlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ class SCLAlertView: UIView {
var rootViewController: UIViewController
var durationTimer: NSTimer!

init () {
required init(coder aDecoder: NSCoder!) {
fatalError("NSCoding not supported")
}

required override init () {
// Content View
self.contentView = UIView(frame: CGRect(x: 0, y: kCircleHeight / 4, width: kWindowWidth, height: kWindowHeight))
self.contentView.backgroundColor = UIColor(white: 1, alpha: 1)
Expand Down Expand Up @@ -158,7 +162,7 @@ class SCLAlertView: UIView {
self.rootViewController.view.addSubview(self)

// Complete text
if completeText {
if completeText != nil {
self.doneButton.setTitle(completeText!, forState: .Normal)
}

Expand Down

0 comments on commit f671750

Please sign in to comment.