mirror of
https://github.com/easychen/pushdeer.git
synced 2025-02-24 00:44:55 +08:00
支持微信登录, 支持同时绑定微信和苹果账号; 解决markdown标题文字显示不全的问题; markdown中的链接支持内嵌浏览器打开; 增加是否使用内置浏览器的设置项; 改名输入框, 失去焦点的时候也保存;
25 lines
506 B
Swift
25 lines
506 B
Swift
//
|
|
// SafariView.swift
|
|
// PushDeer
|
|
//
|
|
// Created by HEXT on 2022/2/27.
|
|
//
|
|
|
|
import SwiftUI
|
|
import SafariServices
|
|
|
|
struct SafariView: UIViewControllerRepresentable {
|
|
|
|
let url: URL
|
|
|
|
func makeUIViewController(context: Context) -> SFSafariViewController {
|
|
let safariVC = SFSafariViewController.init(url: url)
|
|
safariVC.dismissButtonStyle = .close
|
|
return safariVC
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: SFSafariViewController, context: Context) {
|
|
// update code
|
|
}
|
|
}
|