From a2bfbf67f5c7752de79ea936d3a99abd7b3a23a1 Mon Sep 17 00:00:00 2001 From: Erik Lippmann Date: Tue, 10 Sep 2019 18:10:53 +0200 Subject: [PATCH] iOS_13: With iOS13 BaseWindow will no longer accept no arguments anymore. This will fix this while keeping iOS12 compability. --- .../GradientCircularProgress/GradientCircularProgress.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GCProgressSample/GradientCircularProgress/GradientCircularProgress.swift b/GCProgressSample/GradientCircularProgress/GradientCircularProgress.swift index 9698c08..f8cb857 100644 --- a/GCProgressSample/GradientCircularProgress/GradientCircularProgress.swift +++ b/GCProgressSample/GradientCircularProgress/GradientCircularProgress.swift @@ -70,7 +70,7 @@ extension GradientCircularProgress { } private func getProgressAtRatio(display: Bool, style: StyleProperty) { - baseWindow = BaseWindow() + baseWindow = BaseWindow(frame: .zero) progressViewController = ProgressViewController() guard let win = baseWindow, let vc = progressViewController else { @@ -103,7 +103,7 @@ extension GradientCircularProgress { } private func getProgress(message: String?, style: StyleProperty) { - baseWindow = BaseWindow() + baseWindow = BaseWindow(frame: .zero) progressViewController = ProgressViewController() guard let win = baseWindow, let vc = progressViewController else {