Latest 1.0.3
Homepage https://www.remoty.com
License MIT
Platforms ios 10.0, requires ARC
Authors

Latest podspec

{
    "name": "Reditor",
    "version": "1.0.3",
    "license": "MIT",
    "summary": "A Reditor is simple photo editor.",
    "homepage": "https://www.remoty.com",
    "social_media_url": "https://www.remoty.com",
    "description": "# Reditorn                        - Reditor allow to annotate image by drawing & place textnn                        ![Screenshot](IMG_01.PNG)n                        ![Screenshot](IMG_02.PNG)nn                        # Getting Startednn                        ## Installation with CocoaPodsnn                        CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 54 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly.nnn                        1. Using the default Ruby install can require you to use sudo when installing gems.n                        ```n                        $ sudo gem install cocoapodsn                        ```nn                        2. CocoaPods provides a pod init command to create a Podfile with smart defaults. You should use it.n                        ```n                        $ cd <#Your project path#>n                        ```n                        ```n                        $ pod initn                        ```nn                        3. Then add Reditor to pod filen                        ```n                        platform :ios, '10.0'n                        use_frameworks!nn                        target 'MyApp' don                        pod 'Reditor'n                        endn                        ```nn                        4. Run pod install commandn                        ```n                        $ pod installn                        ```nn                        # Usagenn                        ## Init & setupn                        - NOTE: To handle better appearance effect it recommended to pre-define view container that will hold the reditor viewnn                        1. Create a UIView in storyboard and connect it to "@IBOutlet" in your own controller.n                        - (You also can do this in code. Create a UIView with frame size of "self.bounds" and add to subview with alpha zero).n                        2. Reditor initiation return UIViewController that should be added as child view controller to your own controller.n                        3. Then give frame size to reditorVC's view of a predefined container.n                        4. Add reditorVC's view to predefined container subview.n                        5. Add alpha animation to the predefined container to get a fade in effect.n                        6. Finally, add protocol & methods.nn                        ```n                        class ViewController: UIViewController, ReditorProtocol {nnn                        @IBOutlet weak var reditorContainerView: UIView!nnn                        func presentReditorVC(image: UIImage) {nn                        if let reditorVC = Reditor.setupRedior(withImage: image, listener: self) {nn                        self.addChildViewController(reditorVC)nn                        /** Container */n                        reditorContainerView.alpha = 0.0nn                        /** Reditor config */n                        reditorVC.view.frame = self.reditorContainerView.boundsn                        reditorContainerView.addSubview(reditorVC.view)nn                        /** Appearance */n                        UIView.animate(withDuration: 0.33) {n                        self.reditorContainerView.alpha = 1.0n                        }n                        }else{n                        print("Ooops!nSomething went wrong")n                        }n                        }nnn                        func reditorDidFinishedDrawing(image: UIImage) {n                        UIView.animate(withDuration: 0.33, animations: {n                        self.reditorContainerView.alpha = 0.0n                        }, completion: { _ inn                        for subview in self.reditorContainerView.subviews {n                        subview.removeFromSuperview()n                        }n                        })n                        }nn                        func reditorDidCanceledDrawing() {n                        UIView.animate(withDuration: 0.33, animations: {n                        self.reditorContainerView.alpha = 0.0n                        }, completion: { _ inn                        for subview in self.reditorContainerView.subviews {n                        subview.removeFromSuperview()n                        }n                        })n                        }nn                        }n                        ```",
    "authors": {
        "iOS Ninja": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "swift_version": "4.0",
    "requires_arc": true,
    "source": {
        "git": "https://[email protected]/remoty-visual/Remoty/_git/Reditor-iOS",
        "tag": "1.0.3"
    },
    "source_files": "Reditor/**/*.{swift}",
    "resources": "Reditor/**/*.{png,jpeg,jpg,storyboard,xib,xcassets}"
}

Pin It on Pinterest

Share This