Navigation SDK is currently available only to select customers. Contact sales to learn more.

Customizing the Terms and Conditions Dialog Box

Stay organized with collections Save and categorize content based on your preferences.

You can use the GMSNavigationTermsDialogUIParams object to customize the look and feel of the Terms and Conditions dialog box by changing the background color, the fonts, and the text colors.


The following code example demonstrates how to customize the look and feel of the Terms and Conditions dialog box.


let termsUIParams = GMSNavigationTermsDialogUIParams(
                backgroundColor: UIColor(brownColor),
                titleFont: UIFont(name:"ChalkboardSE-Bold", size:18),
                titleColor: UIColor(orangeColor),
                mainTextFont: UIFont(name:"MarkerFelt-Wide", size:18),
                mainTextColor: UIColor(yellowColor),
                buttonsFont: UIFont(name:"Arial-BoldItalicMT", size:14),
                cancelButtonTextColor: UIColor(greenColor),
                acceptButtonTextColor: UIColor(blueColor))

                withTitle: "Some Title",
                companyName: "Your Company Name",
                uiParams: termsUIParams,
                callback: { (termsAccepted: Bool) in
      if termsAccepted {
        // ...
      } else {
        // ...


GMSNavigationTermsDialogUIParams *termsUIParams =
      [[GMSNavigationTermsDialogUIParams alloc] initWithBackgroundColor:[UIColor brownColor]
                      titleFont:[UIFont fontWithName:@"ChalkboardSE-Bold" size:18]
                     titleColor:[UIColor orangeColor]
                   mainTextFont:[UIFont fontWithName:@"MarkerFelt-Wide" size:18]
                  mainTextColor:[UIColor yellowColor]
                    buttonsFont:[UIFont fontWithName:@"Arial-BoldItalicMT" size:14]
          cancelButtonTextColor:[UIColor greenColor]
          acceptButtonTextColor:[UIColor blueColor]];

    showTermsAndConditionsDialogIfNeededWithTitle:@"Some Title"
                                      companyName:@"Nav Demo Company"
                                         callback:^(BOOL termsAccepted) {
                                                         if (termsAccepted) {
                                                           // …
                                                         } else {
                                                           // …