![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
swift
yf_d
擅长JavaScript开发的独立开发者。
技术栈:React,Redux,ReactNative,PHP,Laravel,Swift。
展开
-
SwiftUI从手机相册选择照片Picker 【UIImagePickerController的包装】
直接上代码:import UIKitimport SwiftUIstruct ImagePicker: UIViewControllerRepresentable { @Environment(\.presentationMode) private var presentationMode let sourceType: UIImagePickerController.SourceType let onImagePicked: (UIImage) ->.原创 2020-10-19 22:56:46 · 1008 阅读 · 1 评论 -
SwiftUI:下拉刷新的实现
由于目前swiftui未提供Scrollview的实现,我在网上找到了一个swiftuiLab出得代码,利用滚动偏移实现的下拉刷新。// Authoer: The SwiftUI Lab// Full article: https://swiftui-lab.com/scrollview-pull-to-refresh/import SwiftUIimport Foundationstruct RefreshableScrollView<Content: View>: V.转载 2020-10-19 19:52:51 · 1868 阅读 · 2 评论