Skip to content

Commit c34441f

Browse files
committed
웹뷰 줌 막기 추가
1 parent 4588049 commit c34441f

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

Example/SwiftyBootpay/NativeController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,13 +369,13 @@ extension NativeController {
369369

370370

371371

372-
$0.pg = BootpayPG.TOSS // 결제할 PG사
372+
$0.pg = BootpayPG.KCP // 결제할 PG사
373373

374374
$0.account_expire_at = "2020-12-07" // 가상계좌 입금기간 제한 ( yyyy-mm-dd 포멧으로 입력해주세요. 가상계좌만 적용됩니다. 오늘 날짜보다 더 뒤(미래)여야 합니다 )
375375
// $0.method = "card" // 결제수단
376376
$0.show_agree_window = false
377377
// $0.methods = [Method.BANK, Method.CARD, Method.PHONE, Method.VBANK]
378-
$0.method = Method.CARD
378+
// $0.method = Method.CARD
379379
$0.ux = UX.PG_DIALOG
380380
}
381381

SwiftyBootpay.podspec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Pod::Spec.new do |s|
1111
s.name = 'SwiftyBootpay'
12-
s.version = '3.3.831'
12+
s.version = '3.3.832'
1313
s.summary = 'Bootpay PG Plugin For Swift'
1414

1515
# This description is used to generate tags and improve search results.
@@ -36,10 +36,7 @@ Pod::Spec.new do |s|
3636
s.resource_bundles = {
3737
'SwiftyBootpay' => ['SwiftyBootpay/*.xcassets']
3838
}
39-
40-
41-
# s.public_header_files = 'Pod/Classes/**/*.h'
42-
39+
4340
s.static_framework = true
4441
s.dependency 'CryptoSwift'
4542
s.dependency 'Alamofire', '~> 5.2.2'

SwiftyBootpay/Classes/BootpayWebView.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,21 @@ import WebKit
4646
wv = WKWebView(frame: self.bounds, configuration: configuration)
4747
wv.uiDelegate = self
4848
wv.navigationDelegate = self
49+
wv.scrollView.delegate = self
4950
self.quick_popup = quick_popup
5051
self.addSubview(wv)
5152
self.bootpayScript = script
5253
self.loadUrl(BASE_URL)
5354
}
55+
56+
deinit {
57+
if(wv != nil) {
58+
wv.uiDelegate = nil
59+
wv.navigationDelegate = self
60+
wv.scrollView.delegate = nil
61+
}
62+
63+
}
5464
}
5565

5666
extension BootpayWebView {
@@ -270,3 +280,8 @@ extension BootpayWebView: WKNavigationDelegate, WKUIDelegate, WKScriptMessageHan
270280
}
271281

272282

283+
extension BootpayWebView: UIScrollViewDelegate {
284+
func viewForZooming(in scrollView: UIScrollView) -> UIView? {
285+
return nil
286+
}
287+
}

0 commit comments

Comments
 (0)