Latest 1.0.3
Homepage https://github.com/cardoso19/MDTAlert
License MIT
Platforms ios 9.0
Authors

Build Status pod Platforms Swift Xcode MIT

MDTAlert is a swift framework to show alerts on iOS. All of the alerts are created using constraints so it’s redmensionable when screen rotates.

Requirements

  • iOS 9.0+
  • Xcode 10.2+
  • Swift 5.0+

Features

  • [x] Simple visual of alerts using constraints.
  • [x] Alerts on top and bottom of screen.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate MDTAlert into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'MDTAlert'

Usage

This is an example of how to show an alert using the framework.

import MDTAlert

let alertView = MDTAlertView(message: "This is a test message of the alert on the top of the screen",
                                     position: .top,
                                     dismissTime: 3.0)
        alertView.style(backgroundColor: .red,
                        font: UIFont.systemFont(ofSize: 16),
                        textColor: .white)
        alertView.present()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Latest podspec

{
    "name": "MDTAlert",
    "version": "1.0.3",
    "summary": "MDTAlert is a swift framework to show alerts on iOS.",
    "homepage": "https://github.com/cardoso19/MDTAlert",
    "license": "MIT",
    "authors": {
        "Matheus Cardoso Kuhn": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "5.0",
    "source": {
        "git": "https://github.com/cardoso19/MDTAlert.git",
        "tag": "v1.0.3"
    },
    "source_files": "SourceCode/*.swift"
}

Pin It on Pinterest

Share This