【文件属性】:
文件名称:PopupSwiftUI:SwiftUI中的自定义弹出窗口
文件大小:688KB
文件格式:ZIP
更新时间:2021-05-21 04:10:53
swift alert tutorial popover popup
与该项目有关的文章
。
PopupSwiftUI
该项目演示了如何在SwiftUI中实现自定义弹出窗口。
用法:
struct Popup_Previews : PreviewProvider {
static var previews: some View {
Color. clear
. modifier ( Popup ( isPresented : true , // <--- Add the popup view modifier
content : { Color. yellow . frame ( width : 100 , height : 100 ) }))
. previewDevice ( " iPod touch " )
}
【文件预览】:
PopupSwiftUI-main
----demo-2.gif(119KB)
----demo-3.gif(285KB)
----demo-1.gif(297KB)
----PopupSwiftUI()
--------Preview Content()
--------Info.plist(2KB)
--------Popup.swift(3KB)
--------PopupSwiftUIApp.swift(242B)
--------ContentView.swift(1KB)
--------Snackbar.swift(804B)
--------Assets.xcassets()
--------Loader.swift(398B)
----LICENSE(1KB)
----README.md(835B)
----PopupSwiftUI.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(13KB)
----.gitignore(2KB)