We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f63795 + cf42426 commit 5303d55Copy full SHA for 5303d55
Sources/SegmentedControlPageView/Views/PageView.swift
@@ -1,19 +1,19 @@
1
import SwiftUI
2
3
@available(iOS 13.0, visionOS 1.0, *)
4
-struct PageView<Page: View>: View {
+public struct PageView<Page: View>: View {
5
private var pages: [Page]
6
@Binding private var selection: Int
7
8
- init(
+ public init(
9
_ pages: [Page],
10
selection: Binding<Int>
11
) {
12
self.pages = pages
13
self._selection = selection
14
}
15
16
- var body: some View {
+ public var body: some View {
17
if #available(iOS 14, visionOS 1.0, *) {
18
TabView(selection: $selection) {
19
ForEach(0..<pages.count, id:\.self) { index in
0 commit comments