deepenpatel3 / FlixPrototype

iOS Flix application Prototype (This is a part of an online ios development course that I have taken.)
0 stars 6 forks source link

FlixPrototype

Flix Part 2

User Stories

REQUIRED (10pts)

BONUS

App Walkthrough GIF

git

Notes

Overall experience was good. But, I got stuck in connecting the views to swift files. And initially the poster sizes were very small, which I corrected later.

Flix Part 1

Flix is an app that allows users to browse movies from the The Movie Database API.

let url = URL(string: "https://api.themoviedb.org/3/movie/now_playing?api_key=a07e22bc18f5cb106bfe4cc1f83ad8ed")!
let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: 10)
let session = URLSession(configuration: .default, delegate: nil, delegateQueue: OperationQueue.main)
let task = session.dataTask(with: request) { (data, response, error) in
   // This will run when the network request returns
   if let error = error {
      print(error.localizedDescription)
   } else if let data = data {
      let dataDictionary = try! JSONSerialization.jsonObject(with: data, options: []) as! [String: Any]

      // TODO: Get the array of movies
      // TODO: Store the movies in a property to use elsewhere
      // TODO: Reload your table view data

   }
}
task.resume()

User Stories

REQUIRED (10pts)

BONUS

App Walkthrough GIF

ezgif com-video-to-gif

Notes

As I am from Software Development background, I did not find this assignment much challenging. But I am not familiar with iOS development, so I am struggling a bit through Swift concepts.