OSM-Surveyor
OSM-Surveyor copied to clipboard
Quest interaction
The app already displays quests on the map. Now it would be great if mappers were able to interact with them.
MVP
- The mapper taps on a quest icon
- A
UIAlertControlleris presented, asking the question and providing the answers asUIAlertActions. - Upon tapping on of the answers, the mapper is presented with an "Upload" screen
- On the "Upload" screen, the mapper is able to select one of their OSM accounts that they want to use for the upload
- The screen contains a button labeled "Upload". Upon tapping it, the change is uploaded to OSM
Existing branch
I've already started with the development of this feature. Please checkout the branch feature/Quest-interaction.
Currently UIViewController+QuestInteractionDelegate has fixed answers of Yes and No, which is fine for some quests.
Would it be better to have the answers in the quest class and have UIViewController+QuestInteractionDelegate programatically display the answer buttons?
Good point, thanks for the input!
You're correct: At the moment, the answers are rather fixed. The branch is going for an MVP that would allow the answer of simple yes/no questions, which is why it is not as generic as the solution I implemented for OSM Completionist (askMultipleChoiceQuestionWithQuestion:choices:selectionHandler: and askNumericQuestionWithQuestion:key:handler:). If you want to port/copy that over, I'd be happy to review the pull request.
Unfortunately I'd be in over my head trying to port that over. I'm just poking around apps that I'm interested in to help me learn swift :)