Skip to content

Commit

Permalink
Fixed build error for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
phil1995 committed Oct 26, 2020
1 parent 947ddc9 commit 320f2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CryptomatorCloudAccess/WebDAV/WebDAVSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class WebDAVSession {
let progress = Progress(totalUnitCount: 1)
let task = urlSession.downloadTask(with: request)

if #available(iOS 11.0, *) {
if #available(iOS 11.0, macOS 10.13, *) {
progress.addChild(task.progress, withPendingUnitCount: 1)
}

Expand All @@ -183,7 +183,7 @@ class WebDAVSession {
let progress = Progress(totalUnitCount: 1)
let task = urlSession.uploadTask(with: request, fromFile: fileURL)

if #available(iOS 11.0, *) {
if #available(iOS 11.0, macOS 10.13, *) {
progress.addChild(task.progress, withPendingUnitCount: 1)
}

Expand Down

0 comments on commit 320f2ef

Please sign in to comment.