-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading without internet #103
Conversation
…x/Bruin-Bite-iOS into Loading-Without-Internet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work so far, requested some stylistic changes.
- Also delete the zip you seem to have accidentally in.
- Change from the loading label to the loading graphic.
- Don't make so many accidental additions! :)
@@ -9,10 +9,86 @@ | |||
import UIKit | |||
import Moya | |||
import SnapKit | |||
import Reachability | |||
|
|||
class NetworkManager: NSObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this class to a new file called NetworkManager.swift
under the Helpers
folder.
|
||
class MenuVC: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout{ | ||
|
||
let provider = MoyaProvider<API_methods>() | ||
let reachability = Reachability()! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this. Delete this.
@@ -321,7 +411,5 @@ class MenuVC: UIViewController, UICollectionViewDelegate, UICollectionViewDataSo | |||
if (segue.identifier == "segueToItemDetailVC") { | |||
let vc = segue.destination as! ItemDetailViewController | |||
vc.menuItem = self.menuItem | |||
} | |||
} | |||
} } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated change. please revert to older indentation.
@@ -0,0 +1,415 @@ | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file seems to have been added in by accident, please delete it. NOTE: I am asking you to delete Bruin Bite.xcodeproj/MenuVC.swift
NOT Bruin Bite/View Controllers/MenuVC.swift
made requested changes in #104 |
Fixes #101
Added changes necessary to see if loading label without internet would work, I think it works well but not sure I uploaded it properly