added iOS source code
[wl-app.git] / iOS / Pods / MatomoTracker / MatomoTracker / MainThread.swift
diff --git a/iOS/Pods/MatomoTracker/MatomoTracker/MainThread.swift b/iOS/Pods/MatomoTracker/MatomoTracker/MainThread.swift
new file mode 100644 (file)
index 0000000..c661f12
--- /dev/null
@@ -0,0 +1,5 @@
+import Foundation
+
+func assertMainThread(_ file: StaticString = #file, line: UInt = #line) {
+    assert(Thread.isMainThread, "\(file):\(line) must run on the main thread!")
+}