MiniplayerConfig
public struct MiniplayerConfig : Sendable
Undocumented
-
Undocumented
Declaration
Swift
public var buttonColor: UIColor -
Undocumented
Declaration
Swift
public var isOn: Bool -
Undocumented
Declaration
Swift
public var nameTextStyle: BooksTextStyle -
Undocumented
Declaration
Swift
public var progressColor: UIColor -
Undocumented
Declaration
Swift
public var progressTrackColor: UIColor -
Undocumented
Declaration
Swift
public var timeTextStyle: BooksTextStyle -
Undocumented
Declaration
Swift
public var style: MiniplayerStyle -
Controls how the title scrolls when it overflows the available space.
true(default): title scrolls continuously in one direction, looping back instantly.false: title scrolls to the end, pauses, then scrolls back to the beginning.
Declaration
Swift
public var titleScrollsContinuously: Bool -
When
titleScrollsContinuouslyistrue, controls whether the title pauses at the loop point (the moment it would return to the starting position) on every subsequent pass. The pause duration matches the initial reading pause. Default:true.Declaration
Swift
public var titleScrollPausesBetweenLoops: Bool -
init(buttonColor:isOn: nameTextStyle: progressColor: progressTrackColor: timeTextStyle: style: titleScrollsContinuously: titleScrollPausesBetweenLoops: ) Undocumented
Declaration
Swift
public init( buttonColor: UIColor = .black, isOn: Bool = false, nameTextStyle: BooksTextStyle = .init(color: .black, font: BooksFont(style: .body, size: 15)), progressColor: UIColor = .darkGray, progressTrackColor: UIColor = .lightGray, timeTextStyle: BooksTextStyle = .init(color: .black, font: BooksFont(style: .body, size: 15)), style: MiniplayerStyle = .init(), titleScrollsContinuously: Bool = true, titleScrollPausesBetweenLoops: Bool = true )