Closed askeland closed 5 years ago
May need to account for safe area
They account for the safe area, but I believe that the UIToolbar is not optimal for this. You see a lot of users with same issue on SO and UIToolbar does not like custom heights. It might be better to just use an UIView as “toolbar” and UIButtons inside instead.
@askeland yes I think thats the best solution since I'm not sure if we really need a UIToolbar
Well, someone can open a PR for that but it’s gonna be really annoying as you can’t use UIBarButtonItems or the auto blurred appearance :/
@justJS What was the main motivation for going away from just keeping it in a UINavigationBar?
🤔 I don’t think we ever considered it, before the toolbar it was the default nav bar but flash/auto scan didn’t exist. Wouldn’t It not have the same style tho? I’ll check it out later when I’m on my computer.
Blurred there are UIVisualEffectViews :) so you don't need a UIToolbar for that
I know, but you probably can't add one to a nav bar? Haven't checked yet
@justJS no need the navbar handles that :)
You can also instantiate a UINaviagationBar
I did as suggested in #94 (manually creating blur view to make it look more like Camera app). Thanks for the suggestions @jcampbell05 @askeland. 🙂
Here's a screenshot 😛
@justJS is this one fixed? If so, you can close it :)
Fixed in #94
Looks like the changes in #83 did not work fully as expected. On iPhone X the flash icon is vertically aligned center and the Auto/manual button is vertically aligned in the bottom. Not sure which one of them that is most corrrect, but... Added a screenshot: