Giter Site home page Giter Site logo

shoppinglist's Introduction

Application Name

Shopping List

Course

Hacking with Swift

Objective

The aim of this app is to create a simple shopping list, by adding and removong items to a UITableView, enusring the entries are saved to the app's bundle for later retreival when the app is closedd, then reopened.

Demo

Demo

Education supplier

This iOS app is developed as a "self challenge" project in the iBook tutorial "Hacking with Swift" which forms part of the "Hacking with Swift" tutorial series, authored by Paul Hudson. Self challenges are apps developed from scratch, solo and un-assisted. The requirements are provided by the instructor in text base, list form. Some helpful hints are sometimes provided.

Project Type

Self challenge

Technologies

  • UICollectionViewController

  • UICollectionView

  • UICollectionViewCell (create custom cell)

  • instantiateViewController()

  • Bundle.main.resourcePath

  • contentsOfDirectory(atPath: path)

  • UIAlertController / UIAlertAction

  • UITableViewRowAction (swipte to Share and swipe to Delete)

  • prepare(for segue:)

  • Git / Github

Project goals / instructions

  • Your challenge is to put two different projects into one: I’d like you to re-make project 1, Storm Viewer, using a UICollectionViewController as seen in project 10.


Additional hints:
• You’ll need to use these three lines of code from project 1: let fm = FileManager.default, then let path = Bundle.main.resourcePath!, and finally let items = try! fm.contentsOfDirectory(atPath: path).

• Once you have an array of all the files in your app bundle, use the hasSuffix() method to filter out everything that isn’t a JPG image.

• You’ll need to make ViewController build on UICollectionViewController rather than just UIViewController.

• Just like in project 10, you should create a custom UICollectionViewCell subclass that contains an image view to show your storm images.

• You’ll need to design your detail view controller using Interface Builder, then call instantiateViewController to load it when a collection view cell is tapped.

Stretch goals

Some features included are not part of the guided project, but are added as stretch goals. Stretch goals apply learned knowledge to accomplish and are completed unassisted. Stretch goals may either be suggested by the teaching instructor or self imposed. Strecth goals / features implemented (if any) will be listed here.

  • Support swipe to share Shopping List item (self-imposed)

  • Support swipe to delete Shopping List item (self-imposed)

Completed

December, 2018

Deployment information

  • Deployment Target (iOS version): 12.1 and higher
  • Supported Devices: Universal
  • Optimized for: iPhone

shoppinglist's People

Contributors

simonitalia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.