Latest 0.2
Homepage https://github.com/TonyMJoseph1/NotifyMe
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Tony M Joseph/NotifyMe.svg?style=flat)](https://travis-ci.org/Tony M Joseph/NotifyMe)
Version
License
Platform

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

CocoaPods:

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate NotifyMe into your Xcode project using CocoaPods, specify it in your Podfile:


source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
pod "NotifyMe"
end

Then, run the following command:

$ pod install

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.

    NotifyMe

  • Call the function fetchEmail as follows:

notifyMeButton.fetchEmail { (_) in
self.notifyMeButton.complete(result: .success) // if success
}

Author

Tony M Joseph, [email protected]

License

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

Latest podspec

{
    "name": "NotifyMe",
    "version": "0.2",
    "summary": "A subclass of UIButton that notify a user via email.",
    "description": "This CocoaPod provides a button of its class the ability to notify a user via email he or she entered.",
    "homepage": "https://github.com/TonyMJoseph1/NotifyMe",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tony M Joseph": "[email protected]"
    },
    "source": {
        "git": "https://github.com/TonyMJoseph1/NotifyMe.git",
        "tag": "0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "NotifyMe/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This