Latest 1.0.0
Homepage https://github.com/svetam/ObjCTry
License MIT
Platforms ios 8.0
Authors

Version License Platform

Simple code wrapper to help catching ObjC exceptions within Swift. It works simply by converting exceptioins to errors and rethrows them to allow Swift do-catch block to catch them.

Requirements

iOS 8.0, Swift 3.0

Example usage

do {
try ObjC.try {
// code that throws ObjC exceptions
}
} catch {
print(error)
}

Installation

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

pod "ObjCTry", "~> 1.0"

Author

Svetislav Markovic ([email protected])

License

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

Latest podspec

{
    "name": "ObjCTry",
    "version": "1.0.0",
    "summary": "Catch Objective-C exceptions in your Swift project.",
    "description": "Simple code wrapper. ObjCTry helps you by catching Objective-C exceptions within your Swift do-catch section.",
    "homepage": "https://github.com/svetam/ObjCTry",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Svetislav Markovic": "[email protected]"
    },
    "source": {
        "git": "https://github.com/svetam/ObjCTry.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ObjCTry/Classes/**/*",
    "public_header_files": "ObjCTry/Classes/**/*.h"
}

Pin It on Pinterest

Share This