Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
/ charleene Public archive

Charleene is simple, modern and lightweight solution for porting the UIModalPresentationFormSheet to iPhones.

License

Notifications You must be signed in to change notification settings

KitchenStories/charleene

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Charleene

iOS - UIModalPresentationFormSheet for iPhone

Charleene is simple, modern and lightweight solution for porting the UIModalPresentationFormSheet (known as a system API feature on iPads) to iPhones.

Charleene takes any UIViewController as containing UIViewController and presents it modally.

Whenever Charleene is used on the iPad it calls the iOS system API for UIModalPresentationFormSheet.

Demo

Usage

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

Include

Include the corresponding category on UIViewController in your implementation file

#import "UIViewController+Charleene.h"

Presentation

Usage is as simple as that:

From Storyboard:

ViewControllerOfYourChoice *vc = [[UIStoryboard storyboardWithName:@“Main” bundle:nil] instantiateViewControllerWithIdentifier:@“ViewControllerOfYourChoice”];
[self presentCharleeneModally:vc transitionMode:KSModalTransitionModeFromBottom];
```

From Code:

````objc  
ViewControllerOfYourChoice *vc = [[ViewControllerOfYourChoice alloc] init];    
[self presentCharleeneModally:vc transitionMode:KSModalTransitionModeFromBottom];

Dismissal

Dismissal is as simple as calling the following method on any UIViewController

[self dismissCharleeneAnimated:YES completion:nil];

Requirements

iOS7.x / iOS 8.x

Installation

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

pod "Charleene"

Change Log

What's new in version 1.0

  • No functional update - just fixed some typos and made it a stable 1.0 release

Author

Kersten Broich, [email protected]

License

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

About

Charleene is simple, modern and lightweight solution for porting the UIModalPresentationFormSheet to iPhones.

Resources

License

Stars

Watchers

Forks

Packages

No packages published