-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animation Style & Dynamic Height #62
Comments
I'm having issues with the height of the picker while using it with different data any suggestions on how to solve it? this is my initiation method an it gets called on every click func showPicker(multiple: Bool? = false) {
let picker = CZPickerView(headerTitle: LocalizableConstants.LocalizableFieldSelect.string, cancelButtonTitle: LocalizableConstants.LocalizableTitleCancel.string, confirmButtonTitle: LocalizableConstants.LocalizableTitleConfirm.string)
picker?.delegate = self
picker?.dataSource = self
picker?.headerTitleColor = AppColor.DarkText.color
picker?.headerBackgroundColor = AppColor.Cyan.color
picker?.confirmButtonNormalColor = AppColor.DarkText.color
picker?.confirmButtonBackgroundColor = UIColor(red: 236, green: 240, blue: 241)
picker?.cancelButtonNormalColor = AppColor.DarkText.color
picker?.checkmarkColor = AppColor.Cyan.color
if multiple! {
picker?.allowMultipleSelection = true
picker?.needFooterView = true
}
picker?.show()
}
func numberOfRows(in pickerView: CZPickerView!) -> Int {
switch currentInputIndex {
case 0: return productCatalogs.sizes.count
case 1: return productCatalogs.conditions.count
case 2: return productCatalogs.styles.count
case 3: return productCatalogs.materials.count
case 4: return productCatalogs.colors.count
case 5: return productCatalogs.sleeveLengths.count
case 6: return productCatalogs.sleeveStyles.count
case 7: return productCatalogs.decorations.count
case 8: return productCatalogs.lengths.count
default: return 0
}
} |
@cesarmtz93 first question, we currently the animation style is fixed. For the height issue, I don't see any problem, I guess is that maybe your |
@chenzeyu the |
Is it posible to change the transition animation style (e.g. bounceUp, bounceDown, zoomIn, fadeIn)??
The text was updated successfully, but these errors were encountered: