Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 1 addition & 2 deletions netfox/Core/NFXHTTPModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ fileprivate func < <T : Comparable>(lhs: T?, rhs: T?) -> Bool {
@objc public func readRawData(from fileURL: URL) -> Data? {
do {
return try Data(contentsOf: fileURL)
} catch let error {
print("[NFX]: Failed to load data from [\(fileURL)] - \(error.localizedDescription)")
} catch {
return nil
}
}
Expand Down
12 changes: 0 additions & 12 deletions netfox/iOS/NFXHelper_iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@

import UIKit

extension UIWindow {
override open func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
if NFX.sharedInstance().getSelectedGesture() == .shake {
if (event!.type == .motion && event!.subtype == .motionShake) {
NFX.sharedInstance().motionDetected()
}
} else {
super.motionEnded(motion, with: event)
}
}
}

public extension UIDevice {

class func getNFXDeviceType() -> String {
Expand Down