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

Develop #142

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
함수 크기를 최대한 줄였습니다.
  • Loading branch information
wndzlf committed Mar 19, 2019
commit 99d1309066e8eca73fa6711277208d68ad4e4b20
3 changes: 0 additions & 3 deletions UberEats/Common/Common/HTTPURLResponse+StatusCode.swift
Original file line number Diff line number Diff line change
@@ -12,13 +12,10 @@ public extension HTTPURLResponse {

var httpStatusCode: HTTPStatusCode {
get {

guard let code = HTTPStatusCode(rawValue: statusCode) else {
return HTTPStatusCode.nil
}

return code
}
}

}
4 changes: 4 additions & 0 deletions UberEats/Common/Common/ImageNetworkManager.swift
Original file line number Diff line number Diff line change
@@ -24,10 +24,13 @@ public class ImageNetworkManager {
}

private func downloadImage(imageURL: URL, complection: @escaping (UIImage?, Error?) -> Void) {

session.dataTask(with: imageURL) { [weak self] (data, _, error) in

if error != nil {
return
}

guard let data = data else {
return
}
@@ -41,6 +44,7 @@ public class ImageNetworkManager {
DispatchQueue.main.async {
complection(image, nil)
}

}.resume()
}

Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@ class DependencyPool {

return dependency as! T
}

}

enum DependencyPoolError: Error {
12 changes: 6 additions & 6 deletions UberEats/UberEats/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -16,33 +16,33 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.

//window = UIWindow(frame: UIScreen.main.bounds)

//window?.rootViewController = TabBarVC()

//window?.makeKeyAndVisible()

return true
}

func applicationWillResignActive(_ application: UIApplication) {

}

func applicationDidEnterBackground(_ application: UIApplication) {
}

func applicationWillEnterForeground(_ application: UIApplication) {

}

func applicationDidBecomeActive(_ application: UIApplication) {

}

func applicationWillTerminate(_ application: UIApplication) {

}

}
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ class OrderCheckingCollectionReusableView: UICollectionReusableView {

var progressStatus: ProgressStatus? {
didSet {

guard let status = progressStatus else {
return
}
Loading