GitHunt
BN

bnickel/StackedDrafts

Mail.app style view controller management.

StackedDrafts

This is a Swift implementation of Mail.app style drafting. Things are a little messy right now because I just want to ship the damn thing. Coming soon to Stack Exchange.app!*

What's cool about this?

  • So long as you include the OpenDraftsIndicatorView somewhere on your screen, this runs fairly autonomously. The singleton draft manager handles offscreen view controllers.

  • State restoration is supported. You just need to encode the shared instance:

    func application(application: UIApplication, willEncodeRestorableStateWithCoder coder: NSCoder) {
        coder.encodeObject(OpenDraftsManager.sharedInstance)
    }
  • VoiceOver support.

  • Minimal visual glitching.*

* Not guaranteed.

Try it out!

Open the playground and run the demo.

Just watch the demo!

YouTube

Credits

Languages

Swift99.3%Objective-C0.7%

Contributors

MIT License
Created April 28, 2016
Updated December 12, 2016
bnickel/StackedDrafts | GitHunt