mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-04-28 12:15:29 +08:00
Add image inset support for tab bar item
This commit is contained in:
@@ -66,6 +66,7 @@ module ProMotion
|
||||
tab_bar_item = create_tab_bar_item_custom(title, tab[:item], current_tag) if tab[:item]
|
||||
|
||||
tab_bar_item.badgeValue = tab[:badge_number].to_s unless tab[:badge_number].nil? || tab[:badge_number] <= 0
|
||||
tab_bar_item.imageInsets = tab[:image_insets] if tab[:image_insets]
|
||||
|
||||
tab_bar_item
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user