Udemy, the learning platform where people can purchase video tutorials, had a Summer sale last week and I couldn't resist to buy the IOS11 - Swift - The complete iOS Developer Bootcamp online course since I was always interested in learning mobile app development.
After I completed the first few Lessons I got to the the challenge section where students had to create an "Magic EightBall App".
The concept is simple, there are a few standard answers like Yes, No, I don't know which will be randomly displayed after the user either presses a Button or shakes the device.
Picture of App running on my iPad
All image assets could be downloaded from the instructor side which saved a lot of time since I could dive directly into linking the images to the code and write the logic.
Linking assets to the code in Xcode is very easy, all you need to do is to press the CTRL key and drag the Image or Button into the code window. Once the Image place holder and button is linked you can can use them in your code. To make it more interesting, we had to generate a random number that will be used as the image index number, so that every time a new image is used from the image Array. We also had to add a "shake" function that will run the update image function one the shake motion is complete.
screenshot of storyboard view and linked code
Even though this is a very simple app, I am very proud of it and are determined to continue to learn more so that I can build more complicated apps in the near future. In order to track my progress and push myself to continue learning, I plan to write a steemit post every week that shows the progress I made with Swift and mobile development. The ultimate goal is to produce an app one day that will make use of the STEEM and / or EOS blockchain.
All the best!