-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAQScrollView.swift
40 lines (36 loc) · 1.15 KB
/
AQScrollView.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// AQScrollView.swift
// AQCoreSwiftUIKit (iOS)
//
// Created by Akash Yashavanthrao Shindhe on 09/02/21.
//
import SwiftUI
struct AQScrollView: View {
var body: some View {
Form{
SectionView(title: "ScrollView", description: "A container that presents rows of data arranged in a single column.") {
ScrollView(.vertical, showsIndicators: true, content: {
Text("Placeholder")
Text("Placeholder")
Text("Placeholder")
Text("Placeholder")
})
}
SectionView(title: "ScrollView", description: "A scrollview with horizontal scroll") {
ScrollView(.horizontal, showsIndicators: true, content: {
HStack{
Text("Placeholder")
Text("Placeholder")
Text("Placeholder")
Text("Placeholder")
}
})
}
}
}
}
struct AQScrollView_Previews: PreviewProvider {
static var previews: some View {
AQScrollView()
}
}