I model the data I got from a movie database site and transferred it to the application with Alamofire. I created a detail page for the movies and showed the pictures by downloading them with Kingfisher. I made the auto layout of the application programmatically with Snapkit. I hope you like.
- MVVM Architecture ✅
- Programmatically ✅
- CocoaPods for 3rd Party Libraries✅
- Kingfisher ✅
- Alamofire ✅
- SnapKit ✅
- Scroll View ✅
- Collection View ✅
- Table View ✅
- Pull to Refresh ✅
UpComingMovies: https://api.themoviedb.org/3/movie/upcoming?api_key="YOUR_API_KEY"
NowPlayingMovies: https://api.themoviedb.org/3/movie/now_playing?api_key="YOUR_API_KEY"
{
class NetworkConstant{
enum MovieServiceEndPoint: String {
case BASE_URL = "https://api.themoviedb.org"
case API_KEY = "YOUR_API_KEY"
case IMAGE_BASE_URL = "https://image.tmdb.org/t/p/w1280"
static func fetchUpComingMovies() -> String {
"\(BASE_URL.rawValue)/3/movie/upcoming?api_key=\(API_KEY.rawValue)"
}
static func fetchNowPlayingMovies() -> String {
"\(BASE_URL.rawValue)/3/movie/now_playing?api_key=\(API_KEY.rawValue)"
}
static func fetchMovieDetail(movieID: Int) -> String {
"\(BASE_URL.rawValue)/3/movie/\(movieID)?api_key=\(API_KEY.rawValue)"
}
}
}
}