Skip to content

Instantly share code, notes, and snippets.

View cloxnu's full-sized avatar
🏠
好累啊好累啊。。

Sidney Liu cloxnu

🏠
好累啊好累啊。。
View GitHub Profile
@cloxnu
cloxnu / WithPopover.swift
Created May 2, 2022 07:28 — forked from ccwasden/WithPopover.swift
Custom size popover in iOS SwiftUI
// -- Usage
struct Content: View {
@State var open = false
@State var popoverSize = CGSize(width: 300, height: 300)
var body: some View {
WithPopover(
showPopover: $open,
popoverSize: popoverSize,