TestFairy allows developers to hide specific views from the recorded video. As a developer, you may choose to hide one or more views from the video for security and privacy reasons.

For example, you might want to prevent all information related to credit card data from appearing in the session.


To hide a view from video, all you need to do is call the static instance method hideView in the TestFairy class :

UIView *view = ...
[TestFairy hideView:view];

Code example

@interface MyViewController : UIViewController
    IBOutlet UITextField *usernameView;
    IBOutlet UITextField *creditCardView;
    IBOutlet UITextField *cvvView;


@implementation MyViewController

- (void)viewDidLoad
    [super viewDidLoad];

    [TestFairy hideView:creditCardView];
    [TestFairy hideView:cvvView];

Sample video

Below is a sample screen taken from a demo video. On the left, you can see what the app normally looks like. On the right, there is a screenshot taken with the "Card Number" EditText hidden by testfairy-secure-viewid.


  • Views are hidden from screenshots before they are uploaded.
  • You may use hideView on multiple Views.
  • You may add the same View multiple times, no checks needed.

Related Articles