Integrating a Django project with iOS has never been easier because of Swift, Alamofire, and the Django Rest Framework (DRF). Using these three, we can (1) Build an API (DRF), (2) Interact with the API (Alamofire), and (3) Build iOS Apps (Swift).
This course is all about building an iOS app on top of a pre-existing Django app. We teach you step-by-step in video tutorials https://codingforentrepreneurs.com/projects/django-ios/
The backend for the app is located here
We will continue to update the final code as it is needed. Below you will find the reference code that corresponds to any given lecture in the course.
Enjoy!
Getting Started Guide: here
6 - Status Code Switch Statement
9 - Using an Auth Header with Alamofire
12 - UI Text Fields And A Button
17 - Results as Project Instances
19 - UITableView in a View Controller
24 - Custom Tables Cells for Images and Text
33 - Add Functionality to UI Nav Buttons
35 - Check Token or Logout User
37 - UI Functionality to Comment Form
38 - Another Token Auth Request with Alamofire
39 - Save New Comment on the Server
40 - Completion Handler for Successful Comment Creation
41 - Comment Completion Handler Part 2
43 - Trigger Noification & Time Delay
45 - Comments Table View Controller
46 - Cell Height based on Cell Text
51 - Pull to Refresh Data with UIRefreshControl
52 - Add Video to Comment Table View
53 - The Video Table View Controller
54 - Deselect Row before Segue
55 - Project Description in Header View
57 - Background Image with Pattern
58 - Change Auth Messages to Notifications
59 - Auth View Controller Updates
61 - Lecture List Table Branding
62 - Parent ID for Adding Comments
63 - Response Table View Controller
65 - Auto Adjusting Response Header View