mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
35 lines
854 B
Swift
35 lines
854 B
Swift
//
|
|
// MastodonPinBasedAuthenticationViewModelNavigationDelegateShim.swift
|
|
// Mastodon
|
|
//
|
|
// Created by Cirno MainasuK on 2021/1/29.
|
|
//
|
|
|
|
import os.log
|
|
import Foundation
|
|
import WebKit
|
|
|
|
final class MastodonPinBasedAuthenticationViewModelNavigationDelegateShim: NSObject {
|
|
|
|
weak var viewModel: MastodonPinBasedAuthenticationViewModel?
|
|
|
|
init(viewModel: MastodonPinBasedAuthenticationViewModel) {
|
|
self.viewModel = viewModel
|
|
}
|
|
|
|
deinit {
|
|
os_log(.info, log: .debug, "%{public}s[%{public}ld], %{public}s", ((#file as NSString).lastPathComponent), #line, #function)
|
|
}
|
|
}
|
|
|
|
|
|
// MARK: - WKNavigationDelegate
|
|
extension MastodonPinBasedAuthenticationViewModelNavigationDelegateShim: WKNavigationDelegate {
|
|
|
|
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
|
|
// TODO:
|
|
}
|
|
|
|
}
|
|
|