diff --git a/Documentation/Classes.html b/Documentation/Classes.html index c620c8a..aafc96a 100644 --- a/Documentation/Classes.html +++ b/Documentation/Classes.html @@ -148,7 +148,7 @@

Declaration

diff --git a/Documentation/Classes/VSAlertAction.html b/Documentation/Classes/VSAlertAction.html index 8534526..1b7c3c6 100644 --- a/Documentation/Classes/VSAlertAction.html +++ b/Documentation/Classes/VSAlertAction.html @@ -469,7 +469,7 @@

Declaration

diff --git a/Documentation/Classes/VSAlertController.html b/Documentation/Classes/VSAlertController.html index d2ef933..4fcb827 100644 --- a/Documentation/Classes/VSAlertController.html +++ b/Documentation/Classes/VSAlertController.html @@ -792,7 +792,7 @@

Declaration

diff --git a/Documentation/Constants.html b/Documentation/Constants.html index 2232fd3..96ee5de 100644 --- a/Documentation/Constants.html +++ b/Documentation/Constants.html @@ -142,7 +142,7 @@

Declaration

diff --git a/Documentation/Enums.html b/Documentation/Enums.html index b5d0b6f..30c399e 100644 --- a/Documentation/Enums.html +++ b/Documentation/Enums.html @@ -198,7 +198,7 @@

Declaration

diff --git a/Documentation/Enums/VSAlertActionStyle.html b/Documentation/Enums/VSAlertActionStyle.html index b6202af..1581b3b 100644 --- a/Documentation/Enums/VSAlertActionStyle.html +++ b/Documentation/Enums/VSAlertActionStyle.html @@ -182,7 +182,7 @@

Declaration

diff --git a/Documentation/Enums/VSAlertControllerAnimationStyle.html b/Documentation/Enums/VSAlertControllerAnimationStyle.html index 5b9b6c1..74513f4 100644 --- a/Documentation/Enums/VSAlertControllerAnimationStyle.html +++ b/Documentation/Enums/VSAlertControllerAnimationStyle.html @@ -294,7 +294,7 @@

Declaration

diff --git a/Documentation/Enums/VSAlertControllerStyle.html b/Documentation/Enums/VSAlertControllerStyle.html index de7d855..d0d32fa 100644 --- a/Documentation/Enums/VSAlertControllerStyle.html +++ b/Documentation/Enums/VSAlertControllerStyle.html @@ -182,7 +182,7 @@

Declaration

diff --git a/Documentation/Protocols.html b/Documentation/Protocols.html index de7c678..db66f0f 100644 --- a/Documentation/Protocols.html +++ b/Documentation/Protocols.html @@ -116,7 +116,7 @@

Declaration

diff --git a/Documentation/Protocols/VSAlertControllerDelegate.html b/Documentation/Protocols/VSAlertControllerDelegate.html index d547ded..153a2cd 100644 --- a/Documentation/Protocols/VSAlertControllerDelegate.html +++ b/Documentation/Protocols/VSAlertControllerDelegate.html @@ -154,7 +154,7 @@

Parameters

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html index c620c8a..aafc96a 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html @@ -148,7 +148,7 @@

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 index 8534526..1b7c3c6 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html @@ -469,7 +469,7 @@

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 index d2ef933..4fcb827 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html @@ -792,7 +792,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html index 2232fd3..96ee5de 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html @@ -142,7 +142,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html index b5d0b6f..30c399e 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html @@ -198,7 +198,7 @@

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 index b6202af..1581b3b 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html @@ -182,7 +182,7 @@

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 index 5b9b6c1..74513f4 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html @@ -294,7 +294,7 @@

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 index de7d855..d0d32fa 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html @@ -182,7 +182,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html index de7c678..db66f0f 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html @@ -116,7 +116,7 @@

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 index d547ded..153a2cd 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html @@ -154,7 +154,7 @@

Parameters

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/badge.svg b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/badge.svg deleted file mode 100644 index a096fec..0000000 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/badge.svg +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - documentation - - - documentation - - - 100% - - - 100% - - - diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html index 98f36a5..b1146c4 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html @@ -77,7 +77,7 @@
-

VSAlert

+

README

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.

@@ -102,22 +102,24 @@

VSAlert

  • VSAlert adds the Action Sheet style from Apple’s UIAlertController, missing from PMAlertController
  • VSAlert uses propertransition, and respects the animated parameter in UIViewController’s -presentViewController:animated:completion: method
  • -

    Just Give Me The Code

    +

    Set Up

    +

    Just Give Me The Code

    VSAlert is packaged as a static library (with slices for all modern iPhones and the simulator), but the six files for the three classes that comprise the library are also available in the repo. Open the project, build the Framework targetfor Generic iOS Device if you want to re-compile the static library. The framework is built as a clang module, so you can use the @import module; syntax. (More info here: https://clang.llvm.org/docs/Modules.html). VSAlert makes use of Objective-C categories, so you’ll need to add the appropriate linker flags.

    -

    Getting Started (Static Framework)

    +

    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)

    +

    Getting Started (Using the source code directly)

    1. Go to (RepoDirectory)/Library, and add all six files to your project. Make sure to add all three of the 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:

    
    @@ -143,16 +145,17 @@ 

    Usage

    @end
    +

    Documentation

    -

    Full documentation is here

    -

    Image Template

    +

    Full documentation is here, at https://vsanthanam.github.io/VSAlert/Documentation/index.html

    +

    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

    diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/undocumented.json b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/undocumented.json deleted file mode 100644 index ea85cf9..0000000 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/undocumented.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "warnings": [ - - ], - "source_directory": "/Users/vsanthanam/Documents/Dev/VSAlert" -} \ No newline at end of file diff --git a/Documentation/docsets/VSAlert.tgz b/Documentation/docsets/VSAlert.tgz index 6fa4fcc..35b1a10 100644 Binary files a/Documentation/docsets/VSAlert.tgz and b/Documentation/docsets/VSAlert.tgz differ diff --git a/Documentation/index.html b/Documentation/index.html index 98f36a5..b1146c4 100644 --- a/Documentation/index.html +++ b/Documentation/index.html @@ -77,7 +77,7 @@
    -

    VSAlert

    +

    README

    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.

    @@ -102,22 +102,24 @@

    VSAlert

  • VSAlert adds the Action Sheet style from Apple’s UIAlertController, missing from PMAlertController
  • VSAlert uses propertransition, and respects the animated parameter in UIViewController’s -presentViewController:animated:completion: method
  • -

    Just Give Me The Code

    +

    Set Up

    +

    Just Give Me The Code

    VSAlert is packaged as a static library (with slices for all modern iPhones and the simulator), but the six files for the three classes that comprise the library are also available in the repo. Open the project, build the Framework targetfor Generic iOS Device if you want to re-compile the static library. The framework is built as a clang module, so you can use the @import module; syntax. (More info here: https://clang.llvm.org/docs/Modules.html). VSAlert makes use of Objective-C categories, so you’ll need to add the appropriate linker flags.

    -

    Getting Started (Static Framework)

    +

    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)

    +

    Getting Started (Using the source code directly)

    1. Go to (RepoDirectory)/Library, and add all six files to your project. Make sure to add all three of the 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:

    
    @@ -143,16 +145,17 @@ 

    Usage

    @end
    +

    Documentation

    -

    Full documentation is here

    -

    Image Template

    +

    Full documentation is here, at https://vsanthanam.github.io/VSAlert/Documentation/index.html

    +

    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

    diff --git a/Release/VSAlert.framework/Versions/A/VSAlert b/Release/VSAlert.framework/Versions/A/VSAlert index 3b5c6fc..eb49f4b 100644 Binary files a/Release/VSAlert.framework/Versions/A/VSAlert and b/Release/VSAlert.framework/Versions/A/VSAlert differ diff --git a/VSAlert.xcodeproj/project.pbxproj b/VSAlert.xcodeproj/project.pbxproj index 38a302d..d2fec9d 100644 --- a/VSAlert.xcodeproj/project.pbxproj +++ b/VSAlert.xcodeproj/project.pbxproj @@ -19,6 +19,17 @@ 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 */ @@ -331,6 +342,10 @@ CreatedOnToolsVersion = 9.0; ProvisioningStyle = Automatic; }; + 07FA6E7C203F3B59005AC1A6 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + }; 07FF9DEF1F8FEE85002966A3 = { CreatedOnToolsVersion = 9.0; ProvisioningStyle = Automatic; @@ -353,6 +368,7 @@ 07F00EFE1F8A972D006FAC96 /* VSAlert */, 0710F9B61F8B1CB800C6D084 /* Framework */, 07FF9DEF1F8FEE85002966A3 /* VSAlert-Example */, + 07FA6E7C203F3B59005AC1A6 /* Documentation */, ); }; /* End PBXProject section */ @@ -400,6 +416,20 @@ 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}/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\""; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -597,6 +627,26 @@ }; 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 = { @@ -755,6 +805,15 @@ 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 = (