Latest 0.3.0
Homepage https://github.com/mercadolibre/MLDynamicModal
License Apache License, Version 2.0
Platforms ios 9.0
Dependencies PureLayout, FXBlurView, MLUI
Authors

Use this view to show a custom modal inside your app. Support iOS 9+.

Example

modal

Installation

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

pod "MLDynamicModal"

Usage

1. Import MLDynamicModalViewController class

#import <MLDynamicModal/MLDynamicModalViewController.h>

2. Create an intance

MLDynamicModalViewController *modal = [[MLDynamicModalViewController alloc] initWithView:[[UIView alloc] init]];

Use one of this alternative initializer to customize the view

・More initializers
- (instancetype)initWithView:(UIView *)view headerView:(UIView *)headerView;
- (instancetype)initWithView:(UIView *)view title:(NSString *)title;
- (instancetype)initWithView:(UIView *)view attributedTitle:(NSAttributedString *)attributedTitle;

3. Customize Modal

- (void)setShowCloseButton:(BOOL)show;
- (void)setModalCloseButtonColor:(UIColor *)color;
- (void)setShouldDismissOnTap:(BOOL)dismiss;
- (void)setShouldSwipeToDismiss:(BOOL)dismiss;
- (void)setModalBackgroundColor:(UIColor *)color;
- (void)setModalHeaderBackgroundColor:(UIColor *)color;
- (void)setShowVerticalIndicator:(BOOL)show;
- (void)setHorizontalMargin:(CGFloat)horizontalMargin;

4. PresentModal

[self presentViewController:modal animated:YES completion:nil];

Author

Julian Bruno, [email protected]

Vanesa Stricker, [email protected]

Damian Trimboli, [email protected]

Jonatan Urquiza, [email protected]

Latest podspec

{
    "name": "MLDynamicModal",
    "version": "0.3.0",
    "summary": "Mercado Libre Custom Modal",
    "description": "MLDynamicModal is a custom modal for iOS with swipe, tap and button dismiss recognizer",
    "homepage": "https://github.com/mercadolibre/MLDynamicModal",
    "license": "Apache License, Version 2.0",
    "authors": {
        "MPMobile": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mercadolibre/MLDynamicModal.git",
        "tag": "0.3.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "static_framework": true,
    "source_files": "MLDynamicModal/Classes/**/*",
    "resources": [
        "MLDynamicModal/**/*.{xib}",
        "MLDynamicModal/**/*.{xcassets}",
        "MLDynamicModal/Resources/*.plist"
    ],
    "dependencies": {
        "PureLayout": [],
        "FXBlurView": [],
        "MLUI": []
    }
}

Pin It on Pinterest

Share This