Help getting through the 2nd page of “Learn to code 1” in Swift playgrounds?

By KE8UPE, 9 June, 2021

Forum
App Development and Programming

Hi,
I sincerely apologize for the lengthy subject, but I wanted to be 'as detailed as possible.

As the subject says, I'm struggling to get through the 2nd page of "Learn to code 1" in Swift playgrounds.

It's the one where you have to turn left, in order collect the gem.

Has anyone managed to accomplish this level, and could provide some hints?

Options

Comments

By Unregistered User (not verified) on Wednesday, June 23, 2021 - 05:49

Hi my friend!
Please code any simple text editor for us, blind users!
The task:
You should place on the form three items:
1. on the top left corner "open" button;
2. on the right top corner "save" button;
3. The remained part of this form has to be placed with multi line text edit item;
4. on click "open" button you should code the event which is opening a standard dialogue for choosing file;
For this purpose use Universal type identifier (reference by apple). In our case use 'public.text';
5. When you will get the path of the chosen file, show the file name in the title of this form;
6. Let the user be typing text;
7. on click "save" button you should code the event which is opening a standard dialogue for choosing file;
You have copy text from the multiline text edit item and place it into the file;
8. In the title of this form you should show the file name and the word "Saved";
9. Then compile your app and locate it on app store.
10. Give us your link;
11. It will be your first accessible app.
Cheers!

By Dave Matters on Wednesday, June 23, 2021 - 05:49

This took me a minute. Seems the ‘thing to know’ is that the grid coordinates are based on the grid starting in the bottom left corner. When you are right arrowing through the grid, your not really going left then down, but rather, up the first column and then the second (which is the second from the left. The rows at row 0 which is the bottom row, not the top. Also remember the rows and columns start with 0.
Hope that makes sense and helps.
Dave …

By Unregistered User (not verified) on Wednesday, June 23, 2021 - 05:49

In reply to by Dave Matters

When i say the top right corner it means the top right corner.
It is not important How exactly the button has to be placed on the form.
It's important that I could tap this button and read the button caption.
For example, i place the button in the pythonista design inspector by holding and dropping it on the form.
Cheers!