StewartLynch / CTPicker_SwiftUI

An alternate Picker component for SwiftUI
5 stars 1 forks source link

NavigationBar Overlap #1

Open suarezph opened 4 years ago

suarezph commented 4 years ago

Hi, do you have any idea how to fix the overlapping? I added padding on CTPickerView code below:

if self.presentPicker {
      CTPickerView(presentPicker: self.$presentPicker,
                  pickerField: self.$food,
                  items: self.foodArray,
                  ctpColors: CTPColors(headerBackgroundColor: .red, headerTintColor: .white)
       )
       .zIndex(1)
        .padding(.top, 10)
}

There seems to have a gap (take note: adjusted padding to not to have a gap, but it won't work).

Added screenshot:

Screenshot 2020-09-07 at 12 54 44 AM Screenshot 2020-09-07 at 12 56 06 AM
StewartLynch commented 4 years ago

Can you send me the full project?

On Sep 6, 2020 at 9:59 AM, <AAESIS (mailto:notifications@github.com)> wrote:

Hi, do you have any idea how to fix the overlapping? I added padding on CTPickerView code below:

if self.presentPicker { CTPickerView(presentPicker: self.$presentPicker, pickerField: self.$food, items: self.foodArray, ctpColors: CTPColors(headerBackgroundColor: .red, headerTintColor: .white) ).zIndex(99) .padding(.top, 10) }

There seems to have a gap (take note: adjusted padding to not to have a gap, but it won't work).

Added screenshot:

(https://user-images.githubusercontent.com/802180/92330936-5dab5100-f0a5-11ea-85bf-a8f19323ed97.png)

(https://user-images.githubusercontent.com/802180/92330939-600dab00-f0a5-11ea-9a4a-9677119ac5cf.png)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/StewartLynch/CTPicker_SwiftUI/issues/1), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAWN77CIALRCN3NMAMQLYJTSEO5X3ANCNFSM4Q4UQJJA).