How to disable Slate?

In documentation there is information on how to disable slate (iOS Packaged Game Size | Unreal Engine Documentation) but there is no example. I tried to put bUsesSlate = false in different places in my code and there is no result. Maybe you can point me to some c++ example on how exactly to disable slate? Thank you!

Search for the class for the target rules:

public class YourProjectNameTarget: TargetRules

and find the constructor:

public YourProjectNameTarget(TargetInfo Target)
	{
		Type = TargetType.Game;
        bUsesSlate = false;
	}

Looks like it didn’t work for Android builds - same build size. If this is iOS only solution it must be covered in documentation. BTW thank you!