Skip to content

Commit

Permalink
Update PagerContent+Buildable.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpaulis authored Oct 4, 2023
1 parent bc33345 commit 2f48c53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/SwiftUIPager/PagerContent+Buildable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ extension Pager.PagerContent: Buildable {
mutating(keyPath: \.pageRatio, value: ratio)
}

/// Sets whether the page can be controlled by the keyboard
///
/// - Parameter value: `true` if keyboard control is allowed, `false`, otherwise. Defaults to `true`
func allowsKeyboardControl(_ allow: Bool) -> Self {
mutating(keyPath: \.allowsKeyboardControl, value: allow)
}

#if !os(tvOS)

/// User can only swipe forward so in one direction
Expand Down

0 comments on commit 2f48c53

Please sign in to comment.