Configure the height of the button layer
bircni opened this issue · comments
Hey, thanks for reaching out. If you only want to have the button at the bottom without the notice text or icon above it, please refer to issue #11 where this has been addressed and fixed.
I hope this is what you're aiming for based on your issue description. If not, let me know and we'll work towards a solution. Thank you.
Sorry - no this did not fix it
I can remove the text but the huge lightgray view in which the button is doesnt get adjusted.
It should get smaller so it doesnt take up so much space even when there is no text
I quickly tested it and it does the desired outcome you described by leaving out textViewConfiguration
. Did you try that? Make sure the package is updated to v2.0.1.
// In UIOnboardingHelper.swift
extension UIOnboardingViewConfiguration {
static func setUp() -> UIOnboardingViewConfiguration {
.init(appIcon: UIOnboardingHelper.setUpIcon(),
firstTitleLine: UIOnboardingHelper.setUpFirstTitleLine(),
secondTitleLine: UIOnboardingHelper.setUpSecondTitleLine(),
features: UIOnboardingHelper.setUpFeatures(),
// textViewConfiguration: UIOnboardingHelper.setUpNotice(),
buttonConfiguration: UIOnboardingHelper.setUpButton())
}
}