sokolikp / movie-viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project 1 - movie-viewer

movie-viewer is a movies app using the The Movie Database API.

Time spent: 12 hours spent in total

User Stories

The following required functionality is completed:

  • User can view a list of movies currently playing in theaters. Poster images load asynchronously.
  • User can view movie details by tapping on a cell.
  • User sees loading state while waiting for the API.
  • User sees an error message when there is a network error.
  • User can pull to refresh the movie list.

The following optional features are implemented:

  • Add a tab bar for Now Playing and Top Rated movies.
  • Implement segmented control to switch between list view and grid view.
  • Add a search bar.
  • All images fade in.
  • For the large poster, load the low-res image first, switch to high-res when complete.
  • Customize the highlight and selection effect of the cell.
  • Customize the navigation bar.

The following additional features are implemented:

  • Style improvements
  • Half-screen scrolling on details page

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Notes

Most of the challenges I faced dealt with variable unwrapping, which are more annoying than hindering. I hope to get to the point where I know instinctively which variable I need to unwrap and how (? vs !). Another challenge I faced was getting used to function syntax, and using number/date formatters. I also found some of the the scene viewer organization tedious (placing views within views, getting elements to scroll properly, making elements appear where I wanted them to, etc.).

Acknowledgements

Noun project icons: -fire by By Aleksandr Vector -tickets by By Arthur LacĂ´te, FR

License

Copyright [2017] [Paul Sokolik]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

License:MIT License


Languages

Language:Swift 97.7%Language:Ruby 2.3%