From 34aff183da1338a838921003931fef00b9377a7e Mon Sep 17 00:00:00 2001 From: Gk40002148 Date: Tue, 12 Apr 2022 17:02:43 +0900 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=9C=9FURL=E6=9C=AA=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=83=89=E6=99=82=E3=81=AB=E3=80=81=E3=82=BF=E3=83=96?= =?UTF-8?q?=E5=88=87=E3=82=8A=E6=9B=BF=E3=81=88=E3=81=A7=E3=83=AA=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=83=89=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AgileWorks/WebView/View/WebViewController.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/AgileWorks/AgileWorks/WebView/View/WebViewController.swift b/AgileWorks/AgileWorks/WebView/View/WebViewController.swift index 1b086a3..5d93b7a 100644 --- a/AgileWorks/AgileWorks/WebView/View/WebViewController.swift +++ b/AgileWorks/AgileWorks/WebView/View/WebViewController.swift @@ -31,12 +31,12 @@ class WebViewController: UIViewController { private let monitor = NWPathMonitor() private let queue = DispatchQueue(label: "jp.atled.agileworks") var isShowDoc = false - //widgetから新規タブを開く際のフラグ var openByWidget = false - // 現在表示中のURL var nowURL: String! + // 初期ロード完了フラグ + var initLoadComp = false // Title を設定する URL を定義 let urlToTitle: [String: String] = [ @@ -182,7 +182,8 @@ class WebViewController: UIViewController { // 画面ロード DispatchQueue.main.async { self.setWebView() - self.loadWebView(url:self.loadURL) + self.loadWebView(url: self.loadURL) + self.initLoadComp = true } } else { // Cookie 変更 @@ -410,6 +411,8 @@ extension WebViewController: UITabBarControllerDelegate { if subViewStack.isEmpty { if loadURL != nowURL { viewReload = true + } else if !initLoadComp { + viewReload = true } } else { viewReload = true -- GitLab