Skip to main content

BBShortsState

class BBShortsState

Reactive state holder for BBNativeShortsView.

Create with @State private var shortsState = BBShortsState().

Important: Call destroy() from .onDisappear to ensure timely cleanup of SDK resources, or use the convenience BBNativeShorts/init(jsonUrl:options:) initializer for automatic lifecycle management.

Functions

destroy

func destroy()

Destroy the Shorts view and release resources.