HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

Set Primary Color

This API is used to change the color of both the text and icons to match your app color. You can pass to it any color required.

Instabug.tintColor = .lightGray

//Alternatively, you can pass a color in an RGB format
Instabug.tintColor = .init(red: 0, green: 153/255, blue: 1, alpha: 0)
Instabug.tintColor = UIColor.lightGrayColor;
Instabug.setPrimaryColor(Color.BLUE);
Instabug.setPrimaryColor(Color.BLUE)
Instabug.setPrimaryColor('#ff0000');
Instabug.setPrimaryColor(Color.blue);
Instabug.setPrimaryColor('#ff0000');
//iOS
Instabug.TintColor = UIColor.Red;

//Android
Instabug.PrimaryColor = -7583749;