Coder Social home page Coder Social logo

jacksonjang / jalert Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 226 KB

JAlert is a simple, customizable Alert View written in Swift. We can choose the type we want and use it.

License: MIT License

Swift 94.45% Ruby 5.55%
alert cocoapods ios swift uikit popup uialertview uialertcontroller spm swift-package-manager

jalert's Introduction

JAlert

Version License Platform SPM compatible

Overview

JAlert is a simple, customizable Alert View written in Swift. We can choose the type we want and use it.

Preview

default buttonTitles

CocoaPods

JAlert is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JAlert'

OR

pod 'JAlert', '~> 1.0.0'

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

To integrate JAlert into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift:

dependencies: [
    .package(url: "https://github.com/JacksonJang/JAlert.git")
]

Usage

Quick Start

import JAlert

class ExampleViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        //We can choose Type1 or Type2
        //createType1()
        //createType2()
    }

    func createType1(){
        JAlert.show(title: "title test",
                    message: "message test")
    }

    func createType2(){
        JAlert.show(title: "title test",
                        message: "message test",
                        buttonTitles: ["YES", "NO"]) 
        { (index) in
            print("index : ", index)
        }
    }
}

Contribution

Discussion and pull requests are welcomed !

License

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

jalert's People

Contributors

jacksonjang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.