Search CTRL + K

Trading Cards

Objective

Create the look and feel of trading cards for sports, games, or other areas of interest.

Screenshot 2023-01-12 at 10.07.50 AM.png

Purpose

A second opportunity to demonstrate your understanding of key concepts from the first thread of this course. Specifically, using structures to:

In the next half of this task (to be shared soon) this will be your first opportunity to demonstrate understanding of a key concept from the second thread of this course. Specifically:

Success criteria and exemplar

  1. Made a rough plan where you have identified how various structures (VStack, HStack, ZStack, Image, et cetera) might be used to create part of your design.

    For example:

    Pasted image 20230112102153.png

    And:

    Pasted image 20230112102253.png

  2. Created a static layout where the look and feel of a trading card is reproduced.

    Screenshot 2023-01-12 at 10.24.42 AM.png

  3. Created a structure named TradingCard (or similar) using appropriate property names, capitalization, and selection of data types that will allow you to store the data shown on your card's static layout.

    Screenshot 2023-01-12 at 10.26.01 AM.png|325

  4. Created instances of your structure to hold information for cards.

    Here is one example:

    Screenshot 2023-01-12 at 10.32.18 AM.png|600

Important

UPDATE – Friday January 13: You can stop here on this task – we will complete items 5 and 6 next week in class together. – Mr. Gordon

  1. Applied abstraction by converting your static layout to use a property named card (or similar) that accepts an instance of your TradingCard structure.

    To demonstrate even more mastery of abstraction, use helper views to make the layout more concise and easier to understand:

    Screenshot 2023-01-12 at 10.28.46 AM.png

    NOTE: You used helper views to draw the buttons on the Stopwatch app interface in thread 1.

  2. Made use of a SwiftUI List structure to allow for navigation down to several different cards:

    Screenshot 2023-01-12 at 10.38.25 AM.png

  3. Written code that is well-formatted and easy to read.

  4. You have used source control well by committing and pushing your work to a remote on GitHub at regular intervals.

    Screenshot 2023-01-12 at 10.39.33 AM.png|500

    NOTE: You would likely have more commits than are shown in this example.

What you'll need to begin

Getting started

  1. Create a new iOS app:

    Screenshot 2023-01-12 at 9.18.08 AM.png|700

  2. Name the app TradingCards:

    Screenshot 2023-01-12 at 9.18.22 AM.png|700

  3. Save the app in your Computer Studies folder, ensuring that source control is enabled:

    Screenshot 2023-01-12 at 9.18.37 AM.png|700

  4. Then create a public remote on GitHub:

    Screenshot 2023-01-12 at 10.06.32 AM.png|400

  5. Now work to complete each item described above in the success criteria.

    Please remember to commit and push your work regularly.

Progress and due date

The task is due by 11 PM this Sunday, January 15, 2023.

Prior to the final deadline, on Spaces :

Note

Your work is not considered as handed in until the GitHub remote has been shared and you have committed and pushed all your work.

Further examples

Here are some examples of possible layouts that you could aim to reproduce, or use as inspiration for a similar layout:

Trading Card Template Examples-7 (dragged).png|400

Trading Card Template Examples-3 (dragged).png|400

Trading Card Template Examples-2 (dragged).png|400

Trading Card Template Examples-1 (dragged).png|400

Trading Card Template Examples-4 (dragged).png|400

Trading Card Template Examples-5 (dragged).png|400

Trading Card Template Examples-6 (dragged).png|400

Trading Card Template Examples-8 (dragged).png|400

Trading Card Template Examples-9 (dragged).png|400