Skip to content
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

Closed
wants to merge 10 commits into from
Closed

Conversation

sahenrai
Copy link

@sahenrai sahenrai commented Nov 20, 2018

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

@sahenrai sahenrai closed this Nov 20, 2018
@sahenrai sahenrai reopened this Nov 20, 2018
Copy link
Member

@HirdayGupta HirdayGupta left a 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.

  1. Also delete the zip you seem to have accidentally in.
  2. Change from the loading label to the loading graphic.
  3. Don't make so many accidental additions! :)

@@ -9,10 +9,86 @@
import UIKit
import Moya
import SnapKit
import Reachability

class NetworkManager: NSObject {
Copy link
Member

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()!
Copy link
Member

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
}
}
} }
Copy link
Member

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 @@
//
Copy link
Member

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

@HirdayGupta
Copy link
Member

made requested changes in #104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "loading" & "no-internet" indicators to the menus
2 participants