Custom indicator

    Custom indicator


    Article summary

    Set an indicator source

    • You can enter a broadcast and change the indicator style that appears while the video is loading.

    • Change indicator color (default: white)

    ShopLive.indicatorColor = UIColor.purple


    Set the image animation indicators

    You can set the indicator to an image animation.

    var images: [UIImage] = []
    
    for i in 1...11 {
        images.append(.init(named: "loading\(i)")!)
    }
    
    ShopLive.setLoadingAnimation(images: images)