All Projects → snail-z → Zhpopupcontroller

snail-z / Zhpopupcontroller

Licence: mit
Help you pop up custom views easily. and support pop-up animation, layout position, mask effect and gesture interaction etc.

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Zhpopupcontroller

Overlaycontroller
OverlayController easily pop your custom view and provide optional transition animation. written in swift 5.0
Stars: ✭ 94 (-93.65%)
Mutual labels:  share, elastic, sina, actionsheet, alert, drag, overlay, mask, sidebar
react-spring-bottom-sheet
Accessible ♿️, Delightful ✨, & Fast 🚀
Stars: ✭ 604 (-59.22%)
Mutual labels:  overlay, popup, sheet
Tfpopup
🚀🚀🚀TFPopup不生产弹框,它只是弹框的弹出工🚀🚀🚀默认支持多种动画方式一行调用,支持完全自定义动画.
Stars: ✭ 182 (-87.71%)
Mutual labels:  actionsheet, alert, popup
Popupdialog
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style.
Stars: ✭ 3,709 (+150.44%)
Mutual labels:  alert, popup, overlay
BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (-97.84%)
Mutual labels:  alert, overlay, popup
Swiftentrykit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps.
Stars: ✭ 5,706 (+285.28%)
Mutual labels:  actionsheet, alert, popup
Uiutil
UIUtil for Android, Lyrics, Tick animations, Comparisons, Satellite menus, Praise, Slide buttons, TAB indicators, Contact sorting, Drag sorting, Skidding deletes, Shadow effects, RecyclerView nesting RecyclerView, Map list Poi/Drawer effects, Progress settings, Clock set, Damping, Progress, Album, Snap, Progress, CircleDownload, AdvertSwitcher, Carousel ad, FlowLayout, Tag...; 歌词控件、打勾动画、对比、卫星菜单、点赞、滑动按钮、TAB指示器、联系人排序、拖曳排序、侧滑删除、阴影效果.、RecyclerView嵌套RecyclerView.、地图列表Poi/抽屉效果、进度设置、时钟设置、滑动阻尼、相册媒体快照、圆形下载进度,轮播广告, 流式布局,标签...
Stars: ✭ 1,018 (-31.26%)
Mutual labels:  drag, sidebar
Uploader
A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
Stars: ✭ 1,042 (-29.64%)
Mutual labels:  drag, drop
React Soft Slider
Simple, fast and impartial slider
Stars: ✭ 54 (-96.35%)
Mutual labels:  spring, gesture
Laravel Schematics
A Laravel package making a diagram of your models, relations and the ability to build them with it
Stars: ✭ 1,137 (-23.23%)
Mutual labels:  drag, drop
Ng2 Dnd
Angular 2 Drag-and-Drop without dependencies
Stars: ✭ 861 (-41.86%)
Mutual labels:  drag, drop
Leealert
优雅的可自定义 Alert ActionSheet
Stars: ✭ 1,097 (-25.93%)
Mutual labels:  actionsheet, alert
React Native Alert Pro
The Pro Version of React Native Alert (Android & iOS)
Stars: ✭ 69 (-95.34%)
Mutual labels:  alert, popup
Spalert
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
Stars: ✭ 1,014 (-31.53%)
Mutual labels:  alert, popup
Vue Drag Drop Sort Demo
Vue demo for drag drop sort (for Vue.js 2.x see https://github.com/kenberkeley/vue2-drag-and-drop-demo)
Stars: ✭ 42 (-97.16%)
Mutual labels:  drag, drop
Cdalertview
Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift
Stars: ✭ 1,056 (-28.7%)
Mutual labels:  alert, popup
Vue Slicksort
A set of vue mixins to turn any list into an animated, touch-friendly, sortable list ✌️
Stars: ✭ 1,010 (-31.8%)
Mutual labels:  drag, drop
Vue Smooth Dnd
Vue wrapper components for smooth-dnd
Stars: ✭ 1,121 (-24.31%)
Mutual labels:  drag, drop
Sentinl
Kibana Alert & Report App for Elasticsearch
Stars: ✭ 1,233 (-16.75%)
Mutual labels:  elastic, alert
Alertjs
Dialog Builder allows you to create fully customisable dialogs and popups in Dynamics 365.
Stars: ✭ 80 (-94.6%)
Mutual labels:  alert, popup

Language Version License Platform

zhPopupController can help you pop up custom views easily. It supports custom pop-up animations, layout positions, mask effects, keyboard monitoring, gesture interaction, etc. it API simple and easy to use.

Version 2.0

zhPopupController version 2.0 has been optimized and refactored. Some methods and properties in version 1.0 are no longer compatible. Please upgrade with caution. The swift version is more lightweight and concise. if you want to know more, please see here.

Swift - OverlayController

Example

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

Requirements

  • Requires iOS 8.0 or later
  • Requires Automatic Reference Counting (ARC)

Installation

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

platform :ios, '8.0'
use_frameworks!

target 'You Project' do
    
	pod 'zhPopupController', '~> 2.0'
    
end

Preview

Usage

  • Designated initializer,Must set your content view and its size. Bind the view to a popup controller,one-to-one
    _popupController = [[zhPopupController alloc] initWithView:customView size:alert.bounds.size];
    _popupController.presentationStyle = zhPopupSlideStyleTransform;
    _popupController.presentationTransformScale = 1.25;
    _popupController.dismissonTransformScale = 0.85;
    // ...
    [_popupController showInView:self.view.window completion:NULL];

  • Support following keyboard popup and hide

    If you want to make the animation consistent:

    You need to call the method "becomeFirstResponder()" in "willPresentBlock", don't call it before that.

    You need to call the method "resignFirstResponder()" in "willDismissBlock".

    /// default is NO. if YES, Will adjust view position when keyboard changes
    @property (nonatomic, assign) BOOL keyboardChangeFollowed;
    
    /// default is NO. if the view becomes first responder,you need set YES to keep the animation consistent
    @property (nonatomic, assign) BOOL becomeFirstResponded;
    _popupController.becomeFirstResponded = YES;
    _popupController.keyboardChangeFollowed = YES;
    _popupController.willPresentBlock = ^(zhPopupController * _Nonnull popupController) {
    	[textField becomeFirstResponder];
    };
            
    _popupController.willDismissBlock = ^(zhPopupController * _Nonnull popupController) {
    	[textField resignFirstResponder];
    };
    
    //...
    [_popupController show];

  • Support adjust the spacing between with the keyboard.by keyboardOffsetSpacing. You can through it adjust the spacing relative to the keyboard when the keyboard appears. default is 0, The pan gesture will be invalid when the keyboard appears.

    /// Adjust the spacing between with the keyboard
    @property (nonatomic, assign) CGFloat keyboardOffsetSpacing;

  • Support present/dismiss slide style. bypresentationStyle dismissonStyle

  • Support Set popup view display position. by layoutType

  • Support Set popup view mask style. by maskType

  • Support set popup view priority. default is zhPopupWindowLevelNormal windowLevel

  • Support adjust the layout position by offsetSpacing

  • Support gesture dragging,default is NO. if YES, Popup view will allow to drag panGestureEnabled

  • Support dismiss automatically. the view will disappear after dismissAfterDelay seconds,default is 0 will not disappear

    /// Set popup view mask style. default is zhPopupMaskTypeBlackOpacity (maskAlpha: 0.5)
    @property (nonatomic, assign) zhPopupMaskType maskType;
    
    /// Set popup view display position. default is zhPopupLayoutTypeCenter
    @property (nonatomic, assign) zhPopupLayoutType layoutType;
    
    /// Set popup view present slide style. default is zhPopupSlideStyleFade
    @property (nonatomic, assign) zhPopupSlideStyle presentationStyle;
    
    /// Set popup view dismiss slide style. default is `presentationStyle`
    @property (nonatomic, assign) zhPopupSlideStyle dismissonStyle;
    
    /// Set popup view priority. default is zhPopupWindowLevelNormal
    @property (nonatomic, assign) zhPopupWindowLevel windowLevel;
    
    /// The view will disappear after `dismissAfterDelay` seconds,default is 0 will not disappear
    @property (nonatomic, assign) NSTimeInterval dismissAfterDelay;
    
    /// default is NO. if YES, Popup view will allow to drag
    @property (nonatomic, assign) BOOL panGestureEnabled;
    
    /// Adjust the layout position by `offsetSpacing`
    @property (nonatomic, assign) CGFloat offsetSpacing;

    See demo for more usage.

Author

snail-z, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].