Suggest an edit

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

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

Syntax

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 *cvvNumberView;
}

...

@implementation MyViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    [TestFairy hideView:creditCardView];
    [TestFairy hideView:cvvNumberView];
}

Sample video

Below is a sample screen taken from a demo video. On the left, this is how the app looks like normally. On the right is a screenshot taken with the Images hidden.


Notes


  • 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.