transparentTitle

The transparentTitle property is used to configure the title bar background mode (e.g. transparent or opaque mode) .

Parameter

Definition as follows:

copy
/**
 * TransparentTitle parameter
 */
@property (nonatomic, assign) GRVTransparentMode transparentTitle;

Parameter

Data Type

Required

Description

transparentTitle

GRVTransparentMode

Yes

This parameter is used to configure the the background mode of the title bar:

Valid values:

  • always: indicates the background is always transparent.
  • auto: indicates the background transparency follows the sliding distance.
  • none: indicates the background is opaque (Default).

GRVTransparentMode

copy
typedef NS_ENUM(NSInteger, GRVTransparentMode) {
    GRVTransparentModeNone, // background is opaque
    GRVTransparentModeAuto, // the background transparency follows the sliding distance.  
    GRVTransparentModeAlways // the background is always transparent. 
};

Sample

copy
let param = GRVStartupParams()
param.transparentTitle = .auto

if let viewController = try? GRVAppContainerLaunch.sharedInstance().openApp(withUrl: url.absoluteString, startupParams: param) {
    let rootNav: UINavigationController? = nil //get the current UINavigationController
    rootNav?.pushViewController(viewController, animated: true)
}

User experience

Value

Screenshot

(Before sliding)

Screenshot

(After sliding)

always

IMG_2973.PNG

The background is always transparent.

IMG_2973.PNG

auto

IMG_2975.PNG

The background transparency follows the sliding distance.

IMG_2974.PNG

none

IMG_2972.PNG

The background is always opaque.

IMG_2972.PNG