Skip to content

Instantly share code, notes, and snippets.

View aronbalog's full-sized avatar

Aron Balog aronbalog

View GitHub Profile
package com.example.demo.graphql.input
data class PersonInput(
val name: String
)
@aronbalog
aronbalog / ScrollViewWrapper.swift
Created March 17, 2020 10:57
UIScrollView Wrapper for SwiftUI
import SwiftUI
public struct ScrollViewWrapper<Content: View>: UIViewRepresentable {
@Binding var contentOffset: CGPoint
let content: () -> Content
public init(contentOffset: Binding<CGPoint>, @ViewBuilder _ content: @escaping () -> Content) {
self._contentOffset = contentOffset
self.content = content
}