Latest 0.3.1
License MIT
Platforms ios 8.0

CI Status

Tutti is a Swift library that can be used to manage tutorials and onboarding in
iOS. It is currently limited to the functionality I need in my own apps.

Creating tutorials

When you create tutorials with Tutti, every new tutorial must be given a unique
identifier. Tutti will remember if a tutorial has been previously displayed, so
that users sees a tutorial only once (using the hasBeenDisplayed property).

The Tutorial protocol can be used to create custom tutorials. It handles page
information and has a function for retrieving the name of tutorial resources. A
resource can be anything you need, such as localization keys, images etc.

The TutorialBase class provides you with basic tutorial logic. It gets you up
and running quickly. Override the functions that do not behave the way you like.
The default resource name convention scheme in a TutorialBase-based tutorial is
tutorial_[identifier]_[index]_[resourceName]. This means that the name of the
title of the "welcome" tutorial’s third page is tutorial_welcome_2_title. Use
the getResourceName() function to resolve the name of any resource.

The LocalizationBasedTutorial class inherits TutorialBase and provides a more
automated way to create multi-page tutorials. It uses the Localizable.strings
file and uses language keys to setup pages in a tutorial. As long as title or
text keys exists for a tutorial page, it creates a new page and increment the
page count. So, if a "tutorial_welcome_0_title" and a "tutorial_welcome_1_text"
key exists in the language file, the welcome tutorial will have two pages.

Displaying tutorials

For now, Tutti only comes with one view controller, that can display multi-page
tutorials. A future improvement will be to create ways of showing a simple hint
popover over a button, tutorial sequences etc. Feel free to contribute!


The TutorialViewController class can be used to show a tutorial anywhere. Use
show(tutorial:in) to show a tutorial, then bind the various IBActions to your
view. next, proceed and previous navigate through the pages of a tutorial.
While next does not go past the last page, proceed automatically closes the
tutorial after the last page. close automatically marks a tutorial as already
displayed. TutorialViewController will never show that tutorial again.

TutorialViewController provides you with several outlets, e.g. a next, previous,
proceed and close button, a page control that displays dots for available pages,
an image view as well as a title and text label. The outlets will automatically
refresh when the current page changes. The image view will automatically use an
image with the same name as the current page’s unique id.

TutorialViewController has a swipeable boolean property. If true (it is false
by default), users will be able to swipe left and right to navigate through the
tutorial. Set the swipeRightMode property to .Next or .Proceed to set whether
or not a user can swipe to close the last page.

By default, the TutorialViewController class uses a fade animation when opening
and closing an animation as well as a slide animation when moving between pages.
For now, you can override the four animateOpen, animateClose, animateNext,
and animatePrevious functions to customize these animations.


I have currently not had time to setup a demo that shows how you build a custom
tutorial on top of this library. For now, have a look at the code.

To run the demo project, clone the repo, and run pod install from the Example
directory before building. For now, the example project is empty, and only used
to verify that the pod compiles properly.


Tutti requires iOS 8 or later.


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

pod "Tutti"

If you want to try out the new Swift 3 version of Tutti, grab the swift3 branch
instead of master:

pod "Tutti", :git => '', :branch => 'swift3'

The upcoming 0.3.0 version will use Swift 3. When that happens, this guide will
instruct you on how to use the Swift 2 version instead.


Daniel Saidi, [email protected]


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

Latest podspec

    "name": "Tutti",
    "version": "0.3.1",
    "summary": "Tutti can be used to create iOS tutorials and onboarding experieces.",
    "description": "Tutti is a Swift library that can be used to create iOS tutorials and onboarding experieces.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Daniel Saidi": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.3.1"
    "social_media_url": "",
    "platforms": {
        "ios": "8.0"
    "source_files": "Tutti/Classes/**/*",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This