diff --git a/Documentation/Classes.html b/Documentation/Classes.html old mode 100755 new mode 100644 index c97510d..4630566 --- a/Documentation/Classes.html +++ b/Documentation/Classes.html @@ -10,6 +10,7 @@ +
@@ -171,8 +172,8 @@

Declaration

diff --git a/Documentation/Classes/VSAlertAction.html b/Documentation/Classes/VSAlertAction.html old mode 100755 new mode 100644 index 6b921c5..b823226 --- a/Documentation/Classes/VSAlertAction.html +++ b/Documentation/Classes/VSAlertAction.html @@ -492,8 +492,8 @@

Declaration

diff --git a/Documentation/Classes/VSAlertController.html b/Documentation/Classes/VSAlertController.html old mode 100755 new mode 100644 index 6f7a585..f659616 --- a/Documentation/Classes/VSAlertController.html +++ b/Documentation/Classes/VSAlertController.html @@ -870,8 +870,8 @@

Declaration

diff --git a/Documentation/Constants.html b/Documentation/Constants.html old mode 100755 new mode 100644 index 2191ea9..4bf433b --- a/Documentation/Constants.html +++ b/Documentation/Constants.html @@ -10,6 +10,7 @@ +
@@ -192,8 +193,8 @@

Declaration

diff --git a/Documentation/Enums.html b/Documentation/Enums.html old mode 100755 new mode 100644 index e343124..757573a --- a/Documentation/Enums.html +++ b/Documentation/Enums.html @@ -10,6 +10,7 @@ +
@@ -221,8 +222,8 @@

Declaration

diff --git a/Documentation/Enums/VSAlertActionStyle.html b/Documentation/Enums/VSAlertActionStyle.html old mode 100755 new mode 100644 index 0b89bbf..112a449 --- a/Documentation/Enums/VSAlertActionStyle.html +++ b/Documentation/Enums/VSAlertActionStyle.html @@ -205,8 +205,8 @@

Declaration

diff --git a/Documentation/Enums/VSAlertControllerAnimationStyle.html b/Documentation/Enums/VSAlertControllerAnimationStyle.html old mode 100755 new mode 100644 index e2336da..d0a67e8 --- a/Documentation/Enums/VSAlertControllerAnimationStyle.html +++ b/Documentation/Enums/VSAlertControllerAnimationStyle.html @@ -317,8 +317,8 @@

Declaration

diff --git a/Documentation/Enums/VSAlertControllerStyle.html b/Documentation/Enums/VSAlertControllerStyle.html old mode 100755 new mode 100644 index 2d41fea..2a22e03 --- a/Documentation/Enums/VSAlertControllerStyle.html +++ b/Documentation/Enums/VSAlertControllerStyle.html @@ -205,8 +205,8 @@

Declaration

diff --git a/Documentation/Protocols.html b/Documentation/Protocols.html old mode 100755 new mode 100644 index 40b75fa..bfefb32 --- a/Documentation/Protocols.html +++ b/Documentation/Protocols.html @@ -10,6 +10,7 @@ +
@@ -139,8 +140,8 @@

Declaration

diff --git a/Documentation/Protocols/VSAlertControllerDelegate.html b/Documentation/Protocols/VSAlertControllerDelegate.html old mode 100755 new mode 100644 index 3fd26d6..368001a --- a/Documentation/Protocols/VSAlertControllerDelegate.html +++ b/Documentation/Protocols/VSAlertControllerDelegate.html @@ -363,8 +363,8 @@

Parameters

diff --git a/Documentation/badge.svg b/Documentation/badge.svg old mode 100755 new mode 100644 diff --git a/Documentation/css/highlight.css b/Documentation/css/highlight.css old mode 100755 new mode 100644 diff --git a/Documentation/css/jazzy.css b/Documentation/css/jazzy.css old mode 100755 new mode 100644 diff --git a/Documentation/docsets/VSAlert.docset/Contents/Info.plist b/Documentation/docsets/VSAlert.docset/Contents/Info.plist old mode 100755 new mode 100644 diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html old mode 100755 new mode 100644 index c97510d..4630566 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html @@ -10,6 +10,7 @@ +
@@ -171,8 +172,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html old mode 100755 new mode 100644 index 6b921c5..b823226 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html @@ -492,8 +492,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html old mode 100755 new mode 100644 index 6f7a585..f659616 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html @@ -870,8 +870,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html old mode 100755 new mode 100644 index 2191ea9..4bf433b --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html @@ -10,6 +10,7 @@ +
@@ -192,8 +193,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html old mode 100755 new mode 100644 index e343124..757573a --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html @@ -10,6 +10,7 @@ +
@@ -221,8 +222,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html old mode 100755 new mode 100644 index 0b89bbf..112a449 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html @@ -205,8 +205,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html old mode 100755 new mode 100644 index e2336da..d0a67e8 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html @@ -317,8 +317,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html old mode 100755 new mode 100644 index 2d41fea..2a22e03 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html @@ -205,8 +205,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html old mode 100755 new mode 100644 index 40b75fa..bfefb32 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html @@ -10,6 +10,7 @@ +
@@ -139,8 +140,8 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html old mode 100755 new mode 100644 index 3fd26d6..368001a --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html @@ -363,8 +363,8 @@

Parameters

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/css/highlight.css b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/css/highlight.css old mode 100755 new mode 100644 diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/css/jazzy.css b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/css/jazzy.css old mode 100755 new mode 100644 diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html old mode 100755 new mode 100644 index 7f639b1..a38fcff --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html @@ -51,76 +51,13 @@

VSAlert

GitHub release GitHub Release Date documentation

+

Setup & Help

-

An drop-in replacement for UIAlertController that looks a hell of a lot better, built in Objective-C. Based on Codedio’s aweomse Swift library, PMAlertController.

+

For installation instructions, quick start guide, and full documentation, see the project website. +The website is hosted on GitHub Pages, and is built using Jekyll and jekyll-docs-theme. Documentation is generated with JazzyDoc, and styled using Johy. The hosted documentation is applicable for the latest version found under ‘releases’.

+

Community Guidelines

-

Like PMAlertController, VSAlert builds on the functionality of UIAlertController by adding:

- -
    -
  • Built-in support for images in the heading of the alert
  • -
  • Much better animation
  • -
  • Much more flexible customization, because alert actions are subclasses of UIButton.
  • -
- -

VSAlertController differs from PMAlertController in a few ways:

- -
    -
  1. VSAlert doesn’t build it’s UI using a XIB file, which makes it a little bit more portable and easier to manage.
  2. -
  3. VSAlert is written in Objective-C rather than Swift (but is marked up using nullability for easy use in Swift)
  4. -
  5. VSAlert allows for a bit more customization at runtime.
  6. -
  7. VSAlert adds the destructive action style from Apple’s UIAlertController that was missing in PMAlertController
  8. -
  9. VSAlert doesn’t add actions and text fields in the order you create them, but rather in a dynamic order based on how many there are and what style they are (again, like Apple’s UIAlertController)
  10. -
  11. VSAlert doesn’t rely on UITextFieldDelegate, so you can freely assign your UITextField’s .delegate property without fear and the library will continue to work as expected.
  12. -
  13. VSAlert executes action blocks on the main-thread, to allow for UI actions and not get caught up by the main thread checker in Xcode 9.
  14. -
  15. VSAlert adds the Action Sheet style from Apple’s UIAlertController, missing from PMAlertController
  16. -
  17. VSAlert uses propertransition, and respects the animated parameter in UIViewController’s -presentViewController:animated:completion: method
  18. -
-

Set Up

-

Just Give Me The Code

- -

All you need are VSAlertController.h, VSAlertController.m, VSAlertAction.h, and VSAlertAction.m.

-

Getting Started (Static Framework)

- -
    -
  1. Go to (RepoDirectory)/Release/VSAlert.framework, and add it to your project directory.
  2. -
  3. In your app target’s settings, go to General –> Linked Frameworks and Libraries, and add VSAlert.framework
  4. -
  5. In your target’s build settings, go to Other Linker Flags, and add -all_load and -ObjC.
  6. -
-

Getting Started (Using the source code directly)

- -
    -
  1. Go to (RepoDirectory)/VSAlert, and add all the files excepting the modulemap and the umbrella header to your project. Make sure to add all the implementation files to your target’s compile sources build phase, incase Xcode doesn’t do this for you automatically when adding the files to the target’s membership
  2. -
-

Usage

-

Basics

- -

The included Xcode project allows you to build the static library and an example application. Take a look at the example app to see all customization options, but here’s a basic implementation:

-

-#import "MyViewController.h"
-
-@import VSAlert; // replace with #import 'VSAlertController.h' if you're using the source rather than the static framework
-
-@implementation MyViewController
-
-- (void)showAlert:(id)sender {
-
-    VSAlertController *alertController = [VSAlertController alertControllerWithTitle:NSLocalizedString(@"Alert!", nil) description:NSLocalizedString(@"This app needs your attention right now", nil) style:VSAlertControllerStyleAlert];
-    VSAlertAction *action = [VSAlertAction actionWithTitle:NSLocalizedString(@"Close", nil) style:VSAlertActionStyleDefault action:^(VSAlertAction *action) {
-
-        NSLog(@"Do Something");
-
-    }
-
-    [alertController addAction:action];
-    [self presentViewController:alertController animated:YES completion:nil];
-
-}
-
-@end
-
-

Image Template

- -

VSAlertController includes template images to help you size your images to make them look just right on an alert. I suggest using an Image that is 270pt tall and 180pt high, with your actual content centered in the middle at 116 x 116 pt. I’ve included PNGs with the appropriate outline, as well as a .sketch file

+

See the code of conduct for detailed participation rules. Please report all violations to talkto@vsanthanam.com

@@ -181,8 +118,8 @@

Image Template

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/search.json b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/search.json old mode 100755 new mode 100644 diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/docSet.dsidx b/Documentation/docsets/VSAlert.docset/Contents/Resources/docSet.dsidx old mode 100755 new mode 100644 index 5a3f0c5..50a1f20 Binary files a/Documentation/docsets/VSAlert.docset/Contents/Resources/docSet.dsidx and b/Documentation/docsets/VSAlert.docset/Contents/Resources/docSet.dsidx differ diff --git a/Documentation/docsets/VSAlert.tgz b/Documentation/docsets/VSAlert.tgz old mode 100755 new mode 100644 index 4f29c73..f021a5a Binary files a/Documentation/docsets/VSAlert.tgz and b/Documentation/docsets/VSAlert.tgz differ diff --git a/Documentation/index.html b/Documentation/index.html old mode 100755 new mode 100644 index 7f639b1..a38fcff --- a/Documentation/index.html +++ b/Documentation/index.html @@ -51,76 +51,13 @@

VSAlert

GitHub release GitHub Release Date documentation

+

Setup & Help

-

An drop-in replacement for UIAlertController that looks a hell of a lot better, built in Objective-C. Based on Codedio’s aweomse Swift library, PMAlertController.

+

For installation instructions, quick start guide, and full documentation, see the project website. +The website is hosted on GitHub Pages, and is built using Jekyll and jekyll-docs-theme. Documentation is generated with JazzyDoc, and styled using Johy. The hosted documentation is applicable for the latest version found under ‘releases’.

+

Community Guidelines

-

Like PMAlertController, VSAlert builds on the functionality of UIAlertController by adding:

- -
    -
  • Built-in support for images in the heading of the alert
  • -
  • Much better animation
  • -
  • Much more flexible customization, because alert actions are subclasses of UIButton.
  • -
- -

VSAlertController differs from PMAlertController in a few ways:

- -
    -
  1. VSAlert doesn’t build it’s UI using a XIB file, which makes it a little bit more portable and easier to manage.
  2. -
  3. VSAlert is written in Objective-C rather than Swift (but is marked up using nullability for easy use in Swift)
  4. -
  5. VSAlert allows for a bit more customization at runtime.
  6. -
  7. VSAlert adds the destructive action style from Apple’s UIAlertController that was missing in PMAlertController
  8. -
  9. VSAlert doesn’t add actions and text fields in the order you create them, but rather in a dynamic order based on how many there are and what style they are (again, like Apple’s UIAlertController)
  10. -
  11. VSAlert doesn’t rely on UITextFieldDelegate, so you can freely assign your UITextField’s .delegate property without fear and the library will continue to work as expected.
  12. -
  13. VSAlert executes action blocks on the main-thread, to allow for UI actions and not get caught up by the main thread checker in Xcode 9.
  14. -
  15. VSAlert adds the Action Sheet style from Apple’s UIAlertController, missing from PMAlertController
  16. -
  17. VSAlert uses propertransition, and respects the animated parameter in UIViewController’s -presentViewController:animated:completion: method
  18. -
-

Set Up

-

Just Give Me The Code

- -

All you need are VSAlertController.h, VSAlertController.m, VSAlertAction.h, and VSAlertAction.m.

-

Getting Started (Static Framework)

- -
    -
  1. Go to (RepoDirectory)/Release/VSAlert.framework, and add it to your project directory.
  2. -
  3. In your app target’s settings, go to General –> Linked Frameworks and Libraries, and add VSAlert.framework
  4. -
  5. In your target’s build settings, go to Other Linker Flags, and add -all_load and -ObjC.
  6. -
-

Getting Started (Using the source code directly)

- -
    -
  1. Go to (RepoDirectory)/VSAlert, and add all the files excepting the modulemap and the umbrella header to your project. Make sure to add all the implementation files to your target’s compile sources build phase, incase Xcode doesn’t do this for you automatically when adding the files to the target’s membership
  2. -
-

Usage

-

Basics

- -

The included Xcode project allows you to build the static library and an example application. Take a look at the example app to see all customization options, but here’s a basic implementation:

-

-#import "MyViewController.h"
-
-@import VSAlert; // replace with #import 'VSAlertController.h' if you're using the source rather than the static framework
-
-@implementation MyViewController
-
-- (void)showAlert:(id)sender {
-
-    VSAlertController *alertController = [VSAlertController alertControllerWithTitle:NSLocalizedString(@"Alert!", nil) description:NSLocalizedString(@"This app needs your attention right now", nil) style:VSAlertControllerStyleAlert];
-    VSAlertAction *action = [VSAlertAction actionWithTitle:NSLocalizedString(@"Close", nil) style:VSAlertActionStyleDefault action:^(VSAlertAction *action) {
-
-        NSLog(@"Do Something");
-
-    }
-
-    [alertController addAction:action];
-    [self presentViewController:alertController animated:YES completion:nil];
-
-}
-
-@end
-
-

Image Template

- -

VSAlertController includes template images to help you size your images to make them look just right on an alert. I suggest using an Image that is 270pt tall and 180pt high, with your actual content centered in the middle at 116 x 116 pt. I’ve included PNGs with the appropriate outline, as well as a .sketch file

+

See the code of conduct for detailed participation rules. Please report all violations to talkto@vsanthanam.com

@@ -181,8 +118,8 @@

Image Template

diff --git a/Documentation/search.json b/Documentation/search.json old mode 100755 new mode 100644 diff --git a/Documentation/undocumented.json b/Documentation/undocumented.json old mode 100755 new mode 100644 diff --git a/README.md b/README.md index 2bd37cd..9a07dc7 100755 --- a/README.md +++ b/README.md @@ -6,73 +6,12 @@ [![GitHub Release Date](https://img.shields.io/github/release-date/vsanthanam/VSAlert.svg)](https://github.com/vsanthanam/VSAlert/releases) [![documentation](https://code.vsanthanam.com/VSAlert/Documentation/badge.svg)](https://code.vsanthanam.com/VSAlert/Documentation/) -An drop-in replacement for UIAlertController that looks a hell of a lot better, built in Objective-C. Based on Codedio's aweomse Swift library, [PMAlertController](https://github.com/Codeido/PMAlertController). +## Setup & Help -Like PMAlertController, VSAlert builds on the functionality of UIAlertController by adding: +For installation instructions, quick start guide, and full documentation, see the [project website](https://vsalert.vsanthanam.com). +The website is hosted on [GitHub Pages](https://pages.github.com), and is built using [Jekyll](https://jekyllrb.com) and [jekyll-docs-theme](https://github.com/vsanthanam/jekyll-docs-theme). Documentation is generated with [JazzyDoc](https://github.com/realm/jazzy), and styled using [Johy](https://github.com/HarshilShah/Jony). The hosted documentation is applicable for the latest version found under 'releases'. -* Built-in support for images in the heading of the alert -* Much better animation -* Much more flexible customization, because alert actions are subclasses of UIButton. +## Community Guidelines -VSAlertController differs from PMAlertController in a few ways: - -1. VSAlert doesn't build it's UI using a XIB file, which makes it a little bit more portable and easier to manage. -2. VSAlert is written in Objective-C rather than Swift (but is marked up using nullability for easy use in Swift) -3. VSAlert allows for a bit more customization at runtime. -4. VSAlert adds the "destructive" action style from Apple's UIAlertController that was missing in PMAlertController -5. VSAlert doesn't add actions and text fields in the order you create them, but rather in a dynamic order based on how many there are and what "style" they are (again, like Apple's UIAlertController) -6. VSAlert doesn't rely on UITextFieldDelegate, so you can freely assign your UITextField's `.delegate` property without fear and the library will continue to work as expected. -6. VSAlert executes action blocks on the main-thread, to allow for UI actions and not get caught up by the main thread checker in Xcode 9. -7. VSAlert adds the "Action Sheet" style from Apple's UIAlertController, missing from PMAlertController -8. VSAlert uses propertransition, and respects the `animated` parameter in UIViewController's `-presentViewController:animated:completion:` method - -## Set Up - -### Just Give Me The Code -All you need are `VSAlertController.h`, `VSAlertController.m`, `VSAlertAction.h`, and `VSAlertAction.m`. - -### Getting Started (Static Framework) -1. Go to `(RepoDirectory)/Release/VSAlert.framework`, and add it to your project directory. -2. In your app target's settings, go to "General" --> "Linked Frameworks and Libraries", and add `VSAlert.framework` -3. In your target's build settings, go to "Other Linker Flags", and add `-all_load` and `-ObjC`. - -### Getting Started (Using the source code directly) -1. Go to `(RepoDirectory)/VSAlert`, and add all the files excepting the modulemap and the umbrella header to your project. Make sure to add all the implementation files to your target's `compile sources` build phase, incase Xcode doesn't do this for you automatically when adding the files to the target's membership - -## Usage - -### Basics -The included Xcode project allows you to build the static library and an example application. Take a look at the example app to see all customization options, but here's a basic implementation: - -```Objective-C - -#import "MyViewController.h" - -@import VSAlert; // replace with #import 'VSAlertController.h' if you're using the source rather than the static framework - -@implementation MyViewController - -- (void)showAlert:(id)sender { - - VSAlertController *alertController = [VSAlertController alertControllerWithTitle:NSLocalizedString(@"Alert!", nil) description:NSLocalizedString(@"This app needs your attention right now", nil) style:VSAlertControllerStyleAlert]; - VSAlertAction *action = [VSAlertAction actionWithTitle:NSLocalizedString(@"Close", nil) style:VSAlertActionStyleDefault action:^(VSAlertAction *action) { - - NSLog(@"Do Something"); - - } - - [alertController addAction:action]; - [self presentViewController:alertController animated:YES completion:nil]; - -} - -@end -``` -### Documentation -Full documentation is [here](https://vsanthanam.github.io/VSAlert/Documentation/index.html), at https://code.vsanthanam.com/VSAlert/Documentation/index.html - -Documentation with made with [Jazzy](https://github.com/realm/jazzy) by [Realm](https://realm.io), using the [Jony Theme](https://github.com/HarshilShah/Jony) by [Harshil Shah](https://github.com/HarshilShah/), and is hosted on GitHub Pages. - -### Image Template -VSAlertController includes template images to help you size your images to make them look just right on an alert. I suggest using an Image that is 270pt tall and 180pt high, with your actual content centered in the middle at 116 x 116 pt. I've included PNGs with the appropriate outline, as well as a .sketch file +See the [code of conduct](https://code.vsanthanam.com/VSAlert/CODE_OF_CONDUCT.html) for detailed participation rules. Please report all violations to [talkto@vsanthanam.com](mailto:talkto@vsanthanam.com) diff --git a/Release/VSAlert.framework/Versions/A/VSAlert b/Release/VSAlert.framework/Versions/A/VSAlert index 5517d99..6d465bc 100644 Binary files a/Release/VSAlert.framework/Versions/A/VSAlert and b/Release/VSAlert.framework/Versions/A/VSAlert differ diff --git a/VSAlert.podspec b/VSAlert.podspec index a0ad2a6..082ab68 100644 --- a/VSAlert.podspec +++ b/VSAlert.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'VSAlert' - s.version = '1.2.4' + s.version = '1.3' s.summary = "An drop-in replacement for UIAlertController with more power and better looks." s.description = "An drop-in replacement for UIAlertController that looks a hell of a lot better, built in Objective-C. Based on Codedio's aweomse Swift library, PMAlertController." s.homepage = 'https://github.com/vsanthanam/VSAlert' diff --git a/VSAlert.xcodeproj/project.pbxproj b/VSAlert.xcodeproj/project.pbxproj index 4edda08..b01b441 100755 --- a/VSAlert.xcodeproj/project.pbxproj +++ b/VSAlert.xcodeproj/project.pbxproj @@ -19,17 +19,6 @@ name = Framework; productName = Framework; }; - 07FA6E7C203F3B59005AC1A6 /* Documentation */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 07FA6E7F203F3B59005AC1A6 /* Build configuration list for PBXAggregateTarget "Documentation" */; - buildPhases = ( - 07FA6E80203F3B63005AC1A6 /* Build Documentation w/ Jazzy */, - ); - dependencies = ( - ); - name = Documentation; - productName = Documentation; - }; /* End PBXAggregateTarget section */ /* Begin PBXBuildFile section */ @@ -383,10 +372,6 @@ CreatedOnToolsVersion = 9.0; ProvisioningStyle = Automatic; }; - 07FA6E7C203F3B59005AC1A6 = { - CreatedOnToolsVersion = 9.2; - ProvisioningStyle = Automatic; - }; 07FF9DEF1F8FEE85002966A3 = { CreatedOnToolsVersion = 9.0; ProvisioningStyle = Automatic; @@ -408,7 +393,6 @@ targets = ( 07F00EFE1F8A972D006FAC96 /* VSAlert */, 0710F9B61F8B1CB800C6D084 /* Framework */, - 07FA6E7C203F3B59005AC1A6 /* Documentation */, 07FF9DEF1F8FEE85002966A3 /* VSAlert-Example */, 078C2778207D246800DF9D0C /* VSAlertTests */, ); @@ -465,20 +449,6 @@ shellPath = /bin/sh; shellScript = "set -e\n# If we're already inside this script then die\nif [ -n \"$MULTIPLATFORM_BUILD_IN_PROGRESS\" ]; then\nexit 0\nfi\nexport MULTIPLATFORM_BUILD_IN_PROGRESS=1\nFRAMEWORK_NAME=\"VSAlert\"\nINPUT_STATIC_LIB=\"lib${FRAMEWORK_NAME}.a\"\nFRAMEWORK_LOCATION=\"${BUILT_PRODUCTS_DIR}/${FRAMEWORK_NAME}.framework\"\nfunction build_static_library {\n # Will rebuild the static library as specified\n # build_static_library sdk\n xcrun xcodebuild -project \"${PROJECT_FILE_PATH}\" \\\n -target \"${TARGET_NAME}\" \\\n -configuration \"${CONFIGURATION}\" \\\n -sdk \"${1}\" \\\n ONLY_ACTIVE_ARCH=NO \\\n BUILD_DIR=\"${BUILD_DIR}\" \\\n OBJROOT=\"${OBJROOT}\" \\\n BUILD_ROOT=\"${BUILD_ROOT}\" \\\n SYMROOT=\"${SYMROOT}\" $ACTION\n}\nfunction make_fat_library {\n # Will smash 2 static libs together\n # make_fat_library in1 in2 out\n xcrun lipo -create \"${1}\" \"${2}\" -output \"${3}\"\n}\n# 1 - Extract the platform (iphoneos/iphonesimulator) from the SDK name\nif [[ \"$SDK_NAME\" =~ ([A-Za-z]+) ]]; then\nSDK_PLATFORM=${BASH_REMATCH[1]}\nelse\necho \"Could not find platform name from SDK_NAME: $SDK_NAME\"\nexit 1\nfi\n# 2 - Extract the version from the SDK\nif [[ \"$SDK_NAME\" =~ ([0-9]+.*$) ]]; then\nSDK_VERSION=${BASH_REMATCH[1]}\nelse\necho \"Could not find sdk version from SDK_NAME: $SDK_NAME\"\nexit 1\nfi\n# 3 - Determine the other platform\nif [ \"$SDK_PLATFORM\" == \"iphoneos\" ]; then\nOTHER_PLATFORM=iphonesimulator\nelse\nOTHER_PLATFORM=iphoneos\nfi\n# 4 - Find the build directory\nif [[ \"$BUILT_PRODUCTS_DIR\" =~ (.*)$SDK_PLATFORM$ ]]; then\nOTHER_BUILT_PRODUCTS_DIR=\"${BASH_REMATCH[1]}${OTHER_PLATFORM}\"\nelse\necho \"Could not find other platform build directory.\"\nexit 1\nfi\n# Build the other platform.\nbuild_static_library \"${OTHER_PLATFORM}${SDK_VERSION}\"\n# If we're currently building for iphonesimulator, then need to rebuild\n# to ensure that we get both i386 and x86_64\nif [ \"$SDK_PLATFORM\" == \"iphonesimulator\" ]; then\nbuild_static_library \"${SDK_NAME}\"\nfi\n# Join the 2 static libs into 1 and push into the .framework\nmake_fat_library \"${BUILT_PRODUCTS_DIR}/${INPUT_STATIC_LIB}\" \\\n\"${OTHER_BUILT_PRODUCTS_DIR}/${INPUT_STATIC_LIB}\" \\\n\"${FRAMEWORK_LOCATION}/Versions/A/${FRAMEWORK_NAME}\"\n# Ensure that the framework is present in both platform's build directories\ncp -a \"${FRAMEWORK_LOCATION}/Versions/A/${FRAMEWORK_NAME}\" \\\n\"${OTHER_BUILT_PRODUCTS_DIR}/${FRAMEWORK_NAME}.framework/Versions/A/${FRAMEWORK_NAME}\"\n# Copy the framework to the user's desktop\nditto \"${FRAMEWORK_LOCATION}\" \"${PROJECT_DIR}/Release/${FRAMEWORK_NAME}.framework\"\nditto \"${PROJECT_DIR}/${FRAMEWORK_NAME}/Supporting/module.modulemap\" \"${PROJECT_DIR}/Release/${FRAMEWORK_NAME}.framework/Modules\""; }; - 07FA6E80203F3B63005AC1A6 /* Build Documentation w/ Jazzy */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Build Documentation w/ Jazzy"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "jazzy --objc --clean --author 'Varun Santhanam' --author_url 'https://www.vsanthanam.com' --github_url 'https://github.com/vsanthanam/VSAlert' --umbrella-header VSAlert/VSAlert.h --framework-root . --module VSAlert --sdk iphonesimulator --hide-declarations swift --output \"${PROJECT_DIR}/Documentation\" --theme \"${PROJECT_DIR}/JazzyTheme\""; - }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -813,26 +783,6 @@ }; name = Release; }; - 07FA6E7D203F3B59005AC1A6 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = Y88YPD4RJA; - PRODUCT_NAME = "$(TARGET_NAME)"; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; - }; - name = Debug; - }; - 07FA6E7E203F3B59005AC1A6 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = Y88YPD4RJA; - PRODUCT_NAME = "$(TARGET_NAME)"; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; - }; - name = Release; - }; 07FF9E041F8FEE85002966A3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -994,15 +944,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 07FA6E7F203F3B59005AC1A6 /* Build configuration list for PBXAggregateTarget "Documentation" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 07FA6E7D203F3B59005AC1A6 /* Debug */, - 07FA6E7E203F3B59005AC1A6 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 07FF9E031F8FEE85002966A3 /* Build configuration list for PBXNativeTarget "VSAlert-Example" */ = { isa = XCConfigurationList; buildConfigurations = (