CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

NotifyMe 0.2

NotifyMe 0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jan 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by TonyMJoseph.



  • By
  • Tony M Joseph

NotifyMe

Overview

NotifyMe is a subclass of UIButton, written in Swift 3. NotifyMe is customizable button that allows user to enter an email and send appropriate messages to the same.

NotifyMe

Highlights

  • [x] Color of button and textColor is customizable.
  • [x] User can handle success and error condition.
  • [x] Supports Swift and Objective-C.

Installation

Manually:

  • Download NotifyMe.
  • Drag and drop NotifyMe directory to your project

Example Project

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 7.3+
  • iOS 8.0+

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Usage

Here is how you can use NotifyMe.

Import NotifyMe to your viewcontroller,

import NotifyMe
  • Drag and drop a button in the storyboard and set its constraints and attributes like background color and title color.
  • Set the button class and module to NotifyMe.
  • Set delegate of the button.
  • In the didFinishTask delegate method do the task with the entered emailId.
  • After completing the task with the entered emailId call complete function with .success or .failure argument.
notifyButton.delegate = self

extension ViewController: NotifyMeDelegate {

func didFinishTask(email: String, button: NotifyMe) {
button.complete(result: .success)
}

Author

Tony M Joseph, [email protected]

License

NotifyMe is available under the MIT license. See the LICENSE file for more info.