Closed dianakhazieva closed 4 years ago
let purchaseHistoryItemImage = UIImage(named: "PurchaseHistoryIcon")?.af_imageScaled(to: CGSize(width: 25, height: 25))
let purchaseHistoryItem = RAMAnimatedTabBarItem(title: "History", image: purchaseHistoryItemImage, tag: 0)
purchaseHistoryItem.animation = RAMBounceAnimation()
Cropping the image does not give the result, how can i set the image size of the tab bar icon programmatically? I will be glad to any advice, thanks:)
@RishatYakushev hi, You can't change the image size now. But you can look to the code and implement it. look to the code https://github.com/Ramotion/animated-tab-bar/blob/master/RAMAnimatedTabBarController/RAMAnimatedTabBarController.swift#L360
Custom item size