Latest 0.0.1
License MIT
Platforms ios 7.0, requires ARC
Dependencies UIImage-Resize

Build Status

KTSecretTextView is an attempt to re-create the text view in the app Secret. Its clever designs and heavy use of gestures makes it very intuitive for users to customize their secret texts with textured backgrounds or photos.

More on the creation of this text view here –




  • Scroll horizontally to choose between 8 types of background colors (Emerald Sea, Hopscotch, Lavender, Burst, Cupid, Peony, Midnight, White).
  • Long Press to choose color from a compressed palette.
  • Swipe vertically to choose between 6 types of textures (Glow, Linen, Lines, Noise, Squares, Squares2)
  • Take a photo or choose one from Camera Roll as background.
  • Pan left/right/up/down to vary the blurriness and dimmness of the background image.
  • Text will attempt to align to the center vertically.


Add this to your Podfile to use KTSecretTextView:

pod 'KTSecretTextView', '~> 0.0.1'


TheKTSecretViewController class is a wrapper you can present or push to your view controller stack. The provided sample app simply presents it as a modal as shown below.

Adding KTSecretViewController to imports:

 #import "KTSecretViewController.h"

Presenting the view controller on the tap of a button:

KTSecretViewController *secretVC = self.secretViewController;

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:secretVC];

[self presentViewController:navigationController animated:YES completion:nil];

To capture outputs from KTSecretTextView, vend for a delegate:

@interface KTSecretTextViewSampleViewController ()<

And implement the delegate method which provides a convenient snapshot view containing the edited background and text, as well as the actual attributed string and processed background image. You can make a UIImage from the snapshot view and save it as needed.

- (void)secretViewController:(KTSecretViewController*)vc secretViewSnapshot:(UIView*)snapshotView backgroundImage:(UIImage*)backgroundImage attributedString:(NSAttributedString*)attributedString


Read my post on how the Text View was built.


The following Pods are used:


KTSecretTextView is available under the MIT license.


File an issue or pull request. Or ping me at @kenshin03.

Latest podspec

    "name": "KTSecretTextView",
    "platforms": {
        "ios": "7.0"
    "version": "0.0.1",
    "summary": "Secret Text View",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Kenny Tang": ""
    "source": {
        "git": "",
        "tag": "0.0.1"
    "screenshots": [
    "resources": "SecretTextView/Resources/**/*.*",
    "source_files": "SecretTextView/**/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "UIImage-Resize": []

Pin It on Pinterest

Share This