Skip to content

Instantly share code, notes, and snippets.

View vargero's full-sized avatar

Bruno Leonardo Neves Machado vargero

View GitHub Profile
@vargero
vargero / CustomActionSheet.swift
Last active August 5, 2021 17:58
Custom Action Sheet View Controller (UIKit + SwiftUI)
import SwiftUI
struct CustomActionSheet: View {
@State private var offset: CGFloat = UIScreen.main.bounds.height
@Binding var isShowing: Bool
private var maxWidth: CGFloat { UIScreen.main.bounds.width }
private var maxHeight: CGFloat { UIScreen.main.bounds.height }
init(isShowing: Binding<Bool>) {