ermalkaleci / CarbonKit

CarbonKit - iOS Components (Obj-C & Swift)
MIT License
683 stars 164 forks source link

UIView before Tabbar #207

Open AhmadOdeh93 opened 6 years ago

AhmadOdeh93 commented 6 years ago

hey

i need add custom UIView before the TabBar , because i need show Main Info on it , any idea for it please

AhmadOdeh93 commented 6 years ago

i mean before , top tabbar

ermalkaleci commented 6 years ago

[carbonTabSwipeNavigation insertIntoRootViewController:self andTargetView:yourView]

AhmadOdeh93 commented 6 years ago

bro this give me the UIView under TabBar , i want it before it , and constant in ViewController not moved with tabBar

AhmadOdeh93 commented 6 years ago

i have 3 index in tabBar , in my app the tabBar contains [“Offers”, “Menu”, “Info”] 3 VC , on top before tabBar , i want add UIView Contains Some componant and it don’t change when swip to another VC , i think it should be on the Main CarbonViewController

iManar commented 6 years ago

Same issue here .. actually i'm using custom navigation bar, but when i add the carbon swipe tab it add extra spacing and i don't know how to get rid of it? i tried using the toolbar which was deprecated but it didn't work as well. carbon tab

AhmadOdeh93 commented 6 years ago

my problem here i need make UIView above TabBar like image below i tried make Custom UIView on the Main VC , but the view be under the TabBar .

screen shot 2018-01-21 at 9 36 59 pm

vikas8vertex commented 6 years ago

Any solution for AhmadOdeh93's issue

VivekVithlani commented 6 years ago

Hello, Just set opaque navigation bar.

malqadi88 commented 6 years ago

@AhmadOdeh93 @iManar just create subview (offset from above) and connect it into controller then use [carbonTabSwipeNavigation insertIntoRootViewController:self andTargetView:subview] to load tabs inside subview.

Mahmoud3allam commented 5 years ago

Marwan88 can u share

@AhmadOdeh93 @iManar just create subview (offset from above) and connect it into controller then use [carbonTabSwipeNavigation insertIntoRootViewController:self andTargetView:subview] to load tabs inside subview.

Can you kindly share your code or smth , cuz i still got this issue

malqadi88 commented 5 years ago

@Mahmoud3allam

@IBOutlet weak var containerView: UIView!
var carbonTabSwipeNavigation: CarbonTabSwipeNavigation!

override func viewDidLoad() {
    super.viewDidLoad()
    carbonTabSwipeNavigation = CarbonTabSwipeNavigation(items: ["tab1","tab3"], delegate: self)
    carbonTabSwipeNavigation.insert(intoRootViewController: self, andTargetView: containerView)
}