Skip to content

Commit

Permalink
add: initial demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
horvathtamasattila committed Aug 22, 2020
1 parent fd06177 commit 06be148
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 23 deletions.
7 changes: 0 additions & 7 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions Demo
Submodule Demo added at d8d062
10 changes: 5 additions & 5 deletions Sources/NavigationComposer/NavigationComposer.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import SwiftUI

struct NavigationComposer<Content: View, Navigation: View>: View {
public struct NavigationComposer<Content: View, Navigation: View>: View {
let screenCount: Int
@Binding var currentIndex: Int
let animation: Animation?
let isSwipeable: Bool
let alignment: Alignment
let content: Content
let navigation: Navigation?
init(
public init(
screenCount: Int,
currentIndex: Binding<Int>,
animation: Animation? = .default,
Expand All @@ -31,7 +31,7 @@ struct NavigationComposer<Content: View, Navigation: View>: View {
self.alignment == .horizontal
}

var body: some View {
public var body: some View {
GeometryReader { geometry in
ZStack {
Group {
Expand Down Expand Up @@ -99,13 +99,13 @@ struct NavigationComposer<Content: View, Navigation: View>: 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<Int>,
Expand Down
3 changes: 0 additions & 3 deletions Tests/NavigationComposerTests/NavigationComposerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.

}

Expand Down

0 comments on commit 06be148

Please sign in to comment.