Skip to content

Commit

Permalink
Remove UIKit import for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Nov 17, 2015
1 parent a320f6c commit d6c3d6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Source/Networking+Image.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#if os(iOS) || os(tvOS) || os(watchOS)

import Foundation
import UIKit
import TestCheck
import UIKit

public extension Networking {
#if os(iOS) || os(tvOS) || os(watchOS)
/**
Downloads an image using the specified path.
- parameter path: The path where the image is located
Expand Down Expand Up @@ -101,5 +102,6 @@ public extension Networking {
public func stubImageDownload(path: String, image: UIImage) {
self.stub(.GET, path: path, response: image)
}
#endif
}

#endif
4 changes: 0 additions & 4 deletions Source/Networking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import Foundation
import TestCheck
import JSON

#if os(iOS) || os(tvOS) || os(watchOS)
import UIKit
#endif

public class Networking {
internal enum RequestType: String {
case GET, POST
Expand Down

0 comments on commit d6c3d6a

Please sign in to comment.