Drop-down questionnaire.
Drop-down questionnaire made in Swift. It implements a UITableView with expandable cells on selection.
Table of Contents
Drop-down questionnaire made in Swift. It implements a UITableView with expandable UITableViewCells on selection.
The question types implemented are:
- Short: For questions that need short answers.
- Paragraph: For questions that need long answers.
- Photo: For questions that need an image from the gallery or camera.
- Signature: For questions that need a signature.
- Single or multiple option: For questions that need a selection of provided answers (can be single or multiple).
The information is read from a dummy JSON file that contains the question information, simulating an API request that provides said questionnaire.
When submitting the questionnaire, the algorithm will create a JSON object with the saved information gathered from the saved answers. The app will open a new view with the formatted JSON object and will display its information in the screen.
You will be able to see the unformatted JSON string for the request if the switch in this view is off.
What you'll need to run the app:
- MacOS (Catalina or higher)
- Xcode (11.0 or higher)
- iPhone or iPod (if you want to run the app in a physical device)
- Open the project .xcodeproj file.
- Run the app in the simulator or device.
Distributed under the MIT License. See LICENSE
for more information.
Ivan Pedrero - LinkedIn - [email protected]
Project Link: https://github.com/IvanPedrero/Drop-Down-Questionnaire