We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make a version for SwiftUI Framework
The text was updated successfully, but these errors were encountered:
For folks looking how to use this in SwiftUI:
struct TwinkleView: UIViewRepresentable { @State var rect: CGRect func makeUIView(context: Context) -> UIView { let view = UIView(frame: rect) view.clipsToBounds = false view.twinkle() return view } func updateUIView(_ uiView: UIView, context: Context) { } } //Use like this: SomeSwiftUIView() .overlay( GeometryReader { geometry in //It currently doesn't work without explicitly passing the frame like this TwinkleView(rect: CGRect(x: 0, y: 0, width: geometry.size.width, height: geometry.size.height)) } )
Sorry, something went wrong.
No branches or pull requests
Make a version for SwiftUI Framework
The text was updated successfully, but these errors were encountered: