Skip to content

Commit

Permalink
[CHORE] 여백 수정 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkyuchul committed Dec 1, 2024
1 parent 457e911 commit 76b5971
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import Foundation

import Models



struct FeedResponse: Decodable {
let feedId: Int
let thumbnailImage: String
Expand Down
30 changes: 16 additions & 14 deletions Projects/Feature/Scene/WebView/BKWebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,25 @@ struct BKWebView: UIViewRepresentable {
}
}

final class Coordinator: NSObject, WKNavigationDelegate {
private let parent: BKWebView

init(parent: BKWebView) {
self.parent = parent
}

func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
extension BKWebView {
final class Coordinator: NSObject, WKNavigationDelegate {
private let parent: BKWebView

init(parent: BKWebView) {
self.parent = parent
}

func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
if let urlString = webView.url?.absoluteString {
self.parent.viewModel.title = urlString
}

self.parent.viewModel.canGoBack = webView.canGoBack
self.parent.viewModel.canGoForward = webView.canGoForward
}

self.parent.viewModel.canGoBack = webView.canGoBack
self.parent.viewModel.canGoForward = webView.canGoForward
}

func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
self.parent.viewModel.isLoading = false
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
self.parent.viewModel.isLoading = false
}
}
}

0 comments on commit 76b5971

Please sign in to comment.