new icons
@ -57,6 +57,8 @@ import Foundation
|
||||
var tabs: [UITabBarItem] = []
|
||||
for (index, tab) in model.tabs.enumerated() {
|
||||
let tabBarItem = UITabBarItem(title: tab.title, image: MVMCoreCache.shared()?.getImageFromRegisteredBundles(tab.image), tag: index)
|
||||
tabBarItem.titlePositionAdjustment = UIOffset(horizontal: 0, vertical: -3)
|
||||
tabBarItem.setTitleTextAttributes([NSAttributedString.Key.font: MFFonts.mfFontTXRegular(8)], for: .normal)
|
||||
tabs.append(tabBarItem)
|
||||
}
|
||||
setItems(tabs, animated: false)
|
||||
@ -65,12 +67,14 @@ import Foundation
|
||||
|
||||
/// Sets the item colors.
|
||||
@available(iOS 13.0, *)
|
||||
private func setTabBarItemColors(_ itemAppearance: UITabBarItemAppearance, model: TabBarModel) {
|
||||
itemAppearance.normal.iconColor = model.unSelectedColor.uiColor
|
||||
itemAppearance.normal.titleTextAttributes = [NSAttributedString.Key.foregroundColor: model.unSelectedColor.uiColor]
|
||||
|
||||
itemAppearance.selected.iconColor = model.selectedColor.uiColor
|
||||
itemAppearance.selected.titleTextAttributes = [NSAttributedString.Key.foregroundColor: model.selectedColor.uiColor]
|
||||
private func set(tabItemAppearance: UITabBarItemAppearance, model: TabBarModel) {
|
||||
tabItemAppearance.normal.iconColor = model.unSelectedColor.uiColor
|
||||
tabItemAppearance.normal.titleTextAttributes = [NSAttributedString.Key.foregroundColor: model.unSelectedColor.uiColor, NSAttributedString.Key.font: MFFonts.mfFontTXRegular(8)]
|
||||
tabItemAppearance.normal.titlePositionAdjustment = UIOffset(horizontal: 0, vertical: -3)
|
||||
|
||||
tabItemAppearance.selected.iconColor = model.selectedColor.uiColor
|
||||
tabItemAppearance.selected.titleTextAttributes = [NSAttributedString.Key.foregroundColor: model.selectedColor.uiColor, NSAttributedString.Key.font: MFFonts.mfFontTXRegular(8)]
|
||||
tabItemAppearance.selected.titlePositionAdjustment = UIOffset(horizontal: 0, vertical: -3)
|
||||
}
|
||||
|
||||
// MARK: - UITabBarDelegate
|
||||
|
||||
@ -18,6 +18,7 @@ import Foundation
|
||||
let actionObject = ActionDelegate()
|
||||
let button = self.init(title: title, style: .plain, target: actionObject, action: #selector(actionObject.callActionBlock(_:)))
|
||||
button.actionDelegate = actionObject
|
||||
button.setTitleTextAttributes([NSAttributedString.Key.font: Styler.Font.RegularBodySmall], for: .normal)
|
||||
return button
|
||||
}
|
||||
|
||||
|
||||
BIN
MVMCoreUI/SupportingFiles/Media.xcassets/nav_back.imageset/Back-1.png
vendored
Normal file
|
After Width: | Height: | Size: 636 B |
BIN
MVMCoreUI/SupportingFiles/Media.xcassets/nav_back.imageset/Back-2.png
vendored
Normal file
|
After Width: | Height: | Size: 906 B |
BIN
MVMCoreUI/SupportingFiles/Media.xcassets/nav_back.imageset/Back.png
vendored
Normal file
|
After Width: | Height: | Size: 366 B |
@ -2,17 +2,17 @@
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "nav_back.png",
|
||||
"filename" : "Back.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "nav_back@2x.png",
|
||||
"filename" : "Back-1.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "nav_back@3x.png",
|
||||
"filename" : "Back-2.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
|
||||
|
Before Width: | Height: | Size: 183 B |
|
Before Width: | Height: | Size: 335 B |
|
Before Width: | Height: | Size: 488 B |
BIN
MVMCoreUI/SupportingFiles/Media.xcassets/nav_close.imageset/Close-1.png
vendored
Normal file
|
After Width: | Height: | Size: 571 B |
BIN
MVMCoreUI/SupportingFiles/Media.xcassets/nav_close.imageset/Close-2.png
vendored
Normal file
|
After Width: | Height: | Size: 810 B |
BIN
MVMCoreUI/SupportingFiles/Media.xcassets/nav_close.imageset/Close.png
vendored
Normal file
|
After Width: | Height: | Size: 365 B |
@ -2,17 +2,17 @@
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "nav_close.png",
|
||||
"filename" : "Close.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "nav_close@2x.png",
|
||||
"filename" : "Close-1.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "nav_close@3x.png",
|
||||
"filename" : "Close-2.png",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
|
||||
|
Before Width: | Height: | Size: 268 B |
|
Before Width: | Height: | Size: 488 B |
|
Before Width: | Height: | Size: 738 B |