Skip to content

Instantly share code, notes, and snippets.

View egoryanukovich's full-sized avatar

Egor Yanukovich egoryanukovich

View GitHub Profile
@egoryanukovich
egoryanukovich / gist:a971674452a4145e45de0d92f12f2377
Last active March 17, 2024 16:32
custom ScrollView for iOS 15+16
struct CustomScrollView<Content: View>: View {
// MARK: - Private properties
private let axes: Axis.Set
private let showIndicators: Bool
private let isBouncesEnabled: Bool
@ViewBuilder private var content: () -> Content
// MARK: - Init
init(
axes: Axis.Set = .vertical,