diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 706eede..0000000 --- a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/Demo b/Demo new file mode 160000 index 0000000..d8d0627 --- /dev/null +++ b/Demo @@ -0,0 +1 @@ +Subproject commit d8d0627116c1cf887975f7158fda483c2cb7a2ae diff --git a/Sources/NavigationComposer/NavigationComposer.swift b/Sources/NavigationComposer/NavigationComposer.swift index 75639af..536befc 100644 --- a/Sources/NavigationComposer/NavigationComposer.swift +++ b/Sources/NavigationComposer/NavigationComposer.swift @@ -1,6 +1,6 @@ import SwiftUI -struct NavigationComposer: View { +public struct NavigationComposer: View { let screenCount: Int @Binding var currentIndex: Int let animation: Animation? @@ -8,7 +8,7 @@ struct NavigationComposer: View { let alignment: Alignment let content: Content let navigation: Navigation? - init( + public init( screenCount: Int, currentIndex: Binding, animation: Animation? = .default, @@ -31,7 +31,7 @@ struct NavigationComposer: View { self.alignment == .horizontal } - var body: some View { + public var body: some View { GeometryReader { geometry in ZStack { Group { @@ -99,13 +99,13 @@ struct NavigationComposer: View { return CGFloat(self.currentIndex) } - enum Alignment { + public enum Alignment { case horizontal case vertical } } -extension NavigationComposer where Navigation == EmptyView { +public extension NavigationComposer where Navigation == EmptyView { init( screenCount: Int, currentIndex: Binding, diff --git a/Tests/NavigationComposerTests/NavigationComposerTests.swift b/Tests/NavigationComposerTests/NavigationComposerTests.swift index 0d0a4ad..4928c14 100644 --- a/Tests/NavigationComposerTests/NavigationComposerTests.swift +++ b/Tests/NavigationComposerTests/NavigationComposerTests.swift @@ -3,9 +3,6 @@ import XCTest final class NavigationComposerTests: XCTestCase { func testExample() { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct - // results. }