Skip to content

Commit

Permalink
Added functionality for 1 page
Browse files Browse the repository at this point in the history
  • Loading branch information
blsage committed Oct 22, 2020
1 parent f4a25bc commit 022e16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Quickly implement swipable page views in iOS. 📝

<div style="text-align:center"><img src="instructions/iPagesDemoPrimary.gif" alt="drawing" width="250"/></div>
<img src="instructions/iPagesDemoPrimary.gif" alt="drawing" width="250"/>

1. [Install](https://github.com/benjaminsage/iPages/blob/main/INSTALL.md) `iPages`

Expand Down
4 changes: 2 additions & 2 deletions Sources/iPages/PageViewBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import SwiftUI

@_functionBuilder
public struct PageViewBuilder {
public static func buildBlock<Content>(_ c: Content) -> Content {
return c
public static func buildBlock<Content>(_ c: Content) -> [UIViewController] where Content: View {
return [UIHostingController(rootView: c)]
}

public static func buildBlock<C0, C1>(
Expand Down

0 comments on commit 022e16f

Please sign in to comment.