diff --git a/Example.playground/Contents.swift b/Example.playground/Contents.swift new file mode 100644 index 00000000..6ee72761 --- /dev/null +++ b/Example.playground/Contents.swift @@ -0,0 +1,14 @@ +import XCPlayground +import SDCAlertView + +let viewController = UIViewController() +viewController.view.backgroundColor = UIColor.whiteColor() + +XCPlaygroundPage.currentPage.liveView = viewController +XCPlaygroundPage.currentPage.needsIndefiniteExecution = true + +/*** Create, customize, and present your alert below ***/ + +let alert = AlertController(title: "Title", message: "Hey user, you're being alerted about something") +alert.addAction(AlertAction(title: "OK", style: .Preferred)) +alert.present() diff --git a/Example.playground/contents.xcplayground b/Example.playground/contents.xcplayground new file mode 100644 index 00000000..5da2641c --- /dev/null +++ b/Example.playground/contents.xcplayground @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Example.playground/timeline.xctimeline b/Example.playground/timeline.xctimeline new file mode 100644 index 00000000..bf468afe --- /dev/null +++ b/Example.playground/timeline.xctimeline @@ -0,0 +1,6 @@ + + + + + diff --git a/Example/Base.lproj/Main.storyboard b/Example/Base.lproj/Main.storyboard index 08120850..706b0e2c 100644 --- a/Example/Base.lproj/Main.storyboard +++ b/Example/Base.lproj/Main.storyboard @@ -1,7 +1,7 @@ - + - + @@ -261,11 +261,6 @@ - - - - - diff --git a/Example/DemoViewController.swift b/Example/DemoViewController.swift index cf1c1725..2e1bfcba 100644 --- a/Example/DemoViewController.swift +++ b/Example/DemoViewController.swift @@ -20,11 +20,6 @@ class DemoViewController: UITableViewController { } } - - @IBAction private func presentCustomAlert() { - // This method can be used as a playground. Will be called from the Custom button. - } - private func presentSDCAlertController() { let title = self.titleTextField.content let message = self.messageTextField.content diff --git a/SDCAlertView.xcworkspace/contents.xcworkspacedata b/SDCAlertView.xcworkspace/contents.xcworkspacedata index 9f4a0b63..159d1ab7 100644 --- a/SDCAlertView.xcworkspace/contents.xcworkspacedata +++ b/SDCAlertView.xcworkspace/contents.xcworkspacedata @@ -7,4 +7,7 @@ + +