-
Notifications
You must be signed in to change notification settings - Fork 26
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
Crash when trying to add image as attachment (iPad) #209
Comments
The same crash will occur when attempting to add a new feature and there is more than one feature layer in the map. When there is more than one FL, an AlertController is displayed allowing the user to select which FL to add the feature two. The default configuration in the app has only one FL, so this crash would not happen in that case. |
There are two separate instances of the crash with the The first, image source selection can be solved by changing the type of the The second, feature layer selection, can be handled either by making the Alert (both iPhone and iPad look the same): BarButtonItem: iPhone (this is unchanged from the original code): iPad: @esreli @mikewilburn Do either of you have a preference between using |
From a UI perspective, it would be my preference to keep the alert controller configured as an @mhdostal what do you think? |
@esreli I'm cool with keeping the For the image source selection alert controller it's not so easy. There is no
So for the image source selection alert controller, I'd say we switch to the |
I see now what you're saying.
I thought we might be able to avoid presenting the user with the notion of an alert, which (to me, at least) implies the user has reached a barrier, in favor of prompting them to take an action. It also appears we have way to present a modal Admittedly, amidst the other tasks i'm attending to simultaneously, I didn't investigate the issue as thoroughly as I would have needed to. I'm sorry & i'll do better next time. |
In iOS 13 presenting the image source selection alert controller no longer crashes when using |
Verified in the v1.1.2 release. |
When attempting to add an attachment to a new tree, tapping the "Add Attachments" row in the "Attachments" view crashes the app. The error shown in the log is:
The cause is the UIAlertController needs a rectangle to display the action sheet from on an iPad. This can happen either by the controller's
popoverPresentationController?.barButtonItem
or a combination ofpopoverPresentationController?.sourceView
andpopoverPresentationController?.sourceRect
properties.The solution is to provide a source Rect that the popover would display from (the cell's frame maybe?) or to switch to a different type of alert VC (maybe).
This is iPad-only; does not crash on an iPhone 8.
iPad Pro 10.5"
iOS 12.4.1
The text was updated successfully, but these errors were encountered: