Skip to content

Commit

Permalink
Update Pager+Buildable.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpaulis authored Oct 4, 2023
1 parent 232675d commit ea8f0dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/SwiftUIPager/Pager+Buildable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -378,5 +378,11 @@ extension Pager: Buildable {
return mutating(keyPath: \.sideInsets, value: length ?? 8)
}

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

}

0 comments on commit ea8f0dc

Please sign in to comment.