{"id":2442,"url":"https://github.com/CooperRS/RMActionController","last_synced_at":"2025-08-02T23:33:33.544Z","repository":{"id":31881239,"uuid":"35449702","full_name":"CooperRS/RMActionController","owner":"CooperRS","description":"This is an iOS control for presenting any UIView in an UIAlertController like manner","archived":false,"fork":false,"pushed_at":"2022-10-30T10:22:12.000Z","size":4098,"stargazers_count":539,"open_issues_count":8,"forks_count":59,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-29T08:36:16.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CooperRS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-11T20:58:18.000Z","updated_at":"2024-05-24T08:27:39.000Z","dependencies_parsed_at":"2022-09-10T16:20:39.488Z","dependency_job_id":null,"html_url":"https://github.com/CooperRS/RMActionController","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CooperRS%2FRMActionController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CooperRS%2FRMActionController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CooperRS%2FRMActionController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CooperRS%2FRMActionController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CooperRS","download_url":"https://codeload.github.com/CooperRS/RMActionController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503213,"owners_count":17930539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:16:13.881Z","updated_at":"2024-12-06T17:31:05.769Z","avatar_url":"https://github.com/CooperRS.png","language":"Objective-C","funding_links":[],"categories":["UI","Alert","UI Components"],"sub_categories":["Alert \u0026 Action Sheet","Other free courses"],"readme":"RMActionController [![Build Status](https://travis-ci.org/CooperRS/RMActionController.svg?branch=master)](https://travis-ci.org/CooperRS/RMActionController/) [![Pod Version](https://img.shields.io/cocoapods/v/RMActionController.svg)](https://cocoapods.org/pods/RMActionController) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n====================\n\nThis framework allows you to present just any view as an action sheet. In addition, it allows you to add actions around the presented view which behave like a button and can be tapped by the user. The result looks very much like an `UIActionSheet` or `UIAlertController` with a special `UIView` and some `UIActions` attached.\n\n`RMActionController` also contains two special actions (`RMImageAction` and `RMScrollableGroupedAction`) which allow to build a share sheet which looks very much like the `UIActivityViewController`. In addition, `RMActionController` can be configured to look like the new buy sheet which can be found in the iOS 11 App Store.\n\n## Screenshots\n\n### White\n\n| Custom View | Image Actions | Map | Sheet |\n|:-----------:|:-------------:|:---:|:-----:|\n|![Custom](http://cooperrs.github.io/RMActionController/Images/Custom-White.png)|![Image](http://cooperrs.github.io/RMActionController/Images/Image-White.png)|![Map](http://cooperrs.github.io/RMActionController/Images/Map-White.png)|![Sheet](http://cooperrs.github.io/RMActionController/Images/Sheet-White.png)\n\n### Black\n\n| Custom View | Image Actions | Map | Sheet |\n|:-----------:|:-------------:|:---:|:-----:|\n|![Custom](http://cooperrs.github.io/RMActionController/Images/Custom-Black.png)|![Image](http://cooperrs.github.io/RMActionController/Images/Image-Black.png)|![Map](http://cooperrs.github.io/RMActionController/Images/Map-Black.png)|![Sheet](http://cooperrs.github.io/RMActionController/Images/Sheet-Black.png)\n\n### Landscape\n\n`RMActionController` supports automatic rotation between portrait and landscape.\n\n## Installation (CocoaPods)\n```ruby\nplatform :ios, '8.0'\npod \"RMActionController\", \"~\u003e 1.3.1\"\n```\n\n## Usage\n\nFor a detailed description on how to use `RMActionController` take a look at the [Wiki Pages](https://github.com/CooperRS/RMActionController/wiki). The following four steps are a very short intro:\n\n* Create your own subclass of `RMActionController`. Let's create one for presenting a map and let's call it `RMMapActionController`:\n\n```objc\n@interface RMMapActionController : RMActionController\u003cMKMapView *\u003e\n@end\n```\n\n* In this subclass overwrite the initializer to add your own content view (for example to add a map as content view):\n\n```objc\n@implementation RMMapActionController\n\n- (instancetype)initWithStyle:(RMActionControllerStyle)aStyle title:(NSString *)aTitle message:(NSString *)aMessage selectAction:(RMAction *)selectAction andCancelAction:(RMAction *)cancelAction {\n    self = [super initWithStyle:aStyle title:aTitle message:aMessage selectAction:selectAction andCancelAction:cancelAction];\n    if(self) {\n        self.contentView = [[MKMapView alloc] initWithFrame:CGRectZero];\n        self.contentView.translatesAutoresizingMaskIntoConstraints = NO;\n\n        NSDictionary *bindings = @{@\"mapView\": self.contentView};\n        [self.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@\"[mapView(\u003e=300)]\" options:0 metrics:nil views:bindings]];\n        [self.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@\"V:[mapView(200)]\" options:0 metrics:nil views:bindings]];\n    }\n    return self;\n}\n\n@end\n```\n\n* Present your custom `RMActionController`:\n\n```objc\n- (IBAction)openActionController:(id)sender {\n    RMAction *selectAction = [RMAction\u003cMKMapView *\u003e actionWithTitle:@\"Select\" style:RMActionStyleDone andHandler:^(RMActionController\u003cMKMapView *\u003e *controller) {\n        NSLog(@\"Action controller selected location: %f, %f\", controller.contentView.centerCoordinate.latitude, controller.contentView.centerCoordinate.longitude);\n    }];\n\n    RMAction *cancelAction = [RMAction\u003cMKMapView *\u003e actionWithTitle:@\"Cancel\" style:RMActionStyleCancel andHandler:^(RMActionController\u003cMKMapView *\u003e *controller) {\n        NSLog(@\"Action controller was canceled\");\n    }];\n\n    RMMapActionController *actionController = [RMMapActionController actionControllerWithStyle:RMActionControllerStyleWhite title:@\"Test\" message:@\"This is a map action controller.\\nPlease select a location and tap 'Select' or 'Cancel'.\" selectAction:selectAction andCancelAction:cancelAction];\n\n    //Now just present the action controller using the standard iOS presentation method\n    [self presentViewController:actionController animated:YES completion:nil];\n}\n```\n\n* In case you really want to present a map you may want to disable blur effects for the map (as otherwise it will show as black):\n\n```objc\n@implementation RMMapActionController\n\n- (BOOL)disableBlurEffectsForContentView {\n    return YES;\n}\n\n@end\n```\n\n## Migration\n\nSee [Migration](https://github.com/CooperRS/RMActionController/wiki/Migration) on how to migrate to the latest version of RMActionController.\n\n## Documentation\nThere is an additional documentation available provided by the CocoaPods team. Take a look at [cocoadocs.org](http://cocoadocs.org/docsets/RMActionController/).\n\n## Requirements\n\n| Compile Time  | Runtime       |\n| :------------ | :------------ |\n| Xcode 9       | iOS 8         |\n| iOS 11 SDK    |               |\n| ARC           |               |\n\nNote: ARC can be turned on and off on a per file basis.\n\n## Apps using this control\nUsing this control in your app or know anyone who does?\n\nFeel free to add the app to this list: [Apps using RMActionController](https://github.com/CooperRS/RMActionController/wiki/Apps-using-RMActionController)\n\n## Credits\n\n* Hannes Tribus (Bugfixes)\n* normKei (Destructive button type)\n\nI want to thank everyone who has contributed code and/or time to this project!\n\n## License (MIT License)\n\n```\nCopyright (c) 2015-2017 Roland Moers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCooperRS%2FRMActionController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCooperRS%2FRMActionController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCooperRS%2FRMActionController/lists"}