I had same issue so i write a simple extension in swift and make those method accessable in Objective c.
Something like this
extension UIView {
@objc public func showWaitingLoader() {
let gradient = SkeletonGradient(baseColor: UIColor(red:0.9, green:0.9, blue:0.9, alpha:1))
let animation = SkeletonAnimationBuilder().makeSlidingAnimation(withDirection: GradientDirection.leftRight)
self.showAnimatedGradientSkeleton(usingGradient: gradient, animation: animation)
}
@objc public func hideWaitingLoader(){
self.hideSkeleton(reloadDataAfter: true)
}
}
thanks!
Most helpful comment
I had same issue so i write a simple extension in swift and make those method accessable in Objective c.
Something like this