GoogleNavigation Framework Reference

GMSMapViewNavigationLayoutErrorCodeCannotSetDelegateWhileNavigationEnabled

static const GMSMapViewNavigationLayoutErrorCode
    GMSMapViewNavigationLayoutErrorCodeCannotSetDelegateWhileNavigationEnabled =
        1

The layout delegate cannot be set after navigation UI has been enabled.