Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 05: Interface for Movie Quote Generator For this assignment, you will build the interface for a Movie Quote Generator app. This assignment will be

image text in transcribed

image text in transcribed

Assignment 05: Interface for Movie Quote Generator For this assignment, you will build the interface for a Movie Quote Generator app. This assignment will be used as the starting point for the next assignment, which will include adding functionality to the app. Requirements: 1. Create a new project named MovieQuotes using SwiftUI as the Interface, SwiftUI App as the Life Cycle, and Swift as the Language. Leave all checkboxes unchecked. 2. Using SwiftUI views and stacks, build an interface in ContentView.swift that has the following structure: You should space the items as shown in this diagram. Other formatting details will be left up to you -you will select the images and styles for each of the view elements. Further details about each item in the view are described in the next steps. 3. App Title: Craft an app title that represents your particular app. You will be selecting 3 genres/types of movies or TV shows and your own quotes from each. Your app title should reflect what the app will do, but reflect your personal choices for the app as well. 4. Image Representing App: Choose an image that represents the app you will create. You can create your own or use online sources for images (suggest unsplash.com, flickr.com, and graphicburger.com - but you can use any images) you like. It can be a photograph or it can be more like a logo. Import the image into the Assets catalog in Xcode. You can style this image however you like - e.g. clip into a circle, use a shadow, give it an outline, etc. 5. Buttons: You should have 4 buttons. In the next assignment (next week), you will code the functionality of these buttons. For now, in this assignment, you will be building the button views and coding them to print something to the console as a placeholder. Three buttons will generate a quote from a specific movie genre when clicked. The fourth button will randomly generate a quote from any of the three genres. You choose the three genres and name all of the buttons accordingly. Style the buttons to your liking (e.g. colors, rounded corners, etc.), ensuring that they are all styled in the same way (or in a way that matches). Each button should be coded using one of the three methods described in class (a button instance with a trailing closure is suggested). When any of the buttons are pressed, a placeholder message should be printed to the console in Xcode that states "Genre1/Genre2/Genre3/Random button was pressed." 6. Small Images: To the left of each button will be a small image that represents the genre of movie for that button. You will choose the images, again creating your own or using online sources. Import the images into the project by dragging them into the Assets catalog in Xcode. The small images can be styled to your liking but should be styled in the same way (or in a way that matches). You must use imported images (not system images). 7. Text Field: This will be a Text element that displays the movie quote when one of the buttons is pressed. Include a sample movie quote for this assignment (this will be replaced with a dynamically generated quote in Assignment 04). 8. Prepare Quotes: Prepare a list of 5 movie quotes from each of your chosen genres/types/shows in a .txt file. These quotes will be submitted separate from the project for now, but incorporated into Assignment 04. 9. Submit a .zip file containing your Xcode project folder (outer folder) as well as the .txt file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions