Latest 1.0.3
Homepage https://github.com/voltbank/ReplaceRootViewController
License MIT
Platforms ios 10.0
Authors

CI Status
Version
License
Platform

Information

This project demonstrates a fix for http://www.openradar.me/21404408

This issue has been raised by multiple Stackoverflow support pages. This pod aims to make is super easy to replace the root view controller with animations.

You will need to use the console in xcode and debugging tools (eg "debug view hierarchy") to verify that everything is working as expected. UI test is also provided.

Attribution

This pod wouldnt be possible without the following…

Code…

if let window = view.window {
    window.set(rootViewController: yourReplacementViewController)
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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

pod 'ReplaceRootViewController'

Author

sushant, [email protected]

License

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

Latest podspec

{
    "name": "ReplaceRootViewController",
    "version": "1.0.3",
    "summary": "This pod fixes a UIView memory leak that occurs when swapping out the root view controller in a UIWindow.",
    "description": "This project demonstrates a fix for http://www.openradar.me/21404408nYou will need to use the console in xcode and debugging tools (eg "debug view hierarchy") to verify that everything is working as expected.",
    "homepage": "https://github.com/voltbank/ReplaceRootViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "sushant verma": "[email protected]"
    },
    "source": {
        "git": "https://github.com/voltbank/ReplaceRootViewController.git",
        "tag": "1.0.3"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "ReplaceRootViewController/Classes/**/*"
}

Pin It on Pinterest

Share This