Skip to content

Commit

Permalink
Add Documentation to toolbar function
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronshemilt committed Mar 20, 2021
1 parent 2c7436c commit de8a667
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/KeyboardToolbar/ViewExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ internal struct AppendKeyboardToolbar: ViewModifier {
}

public extension View {
/// Applies a toolbar to the keyboard of this View. Should be attached to the outermost part of the View.
/// - Parameters:
/// - items: A list of all items the toolbar shall contain.
/// - style: Styling of the keyboard toolbar.
func keyboardToolbar(_ items: [KeyboardToolbarItem], style: KeyboardToolbarStyle = .standard) -> some View {
#if targetEnvironment(macCatalyst)
return self
Expand Down

0 comments on commit de8a667

Please sign in to comment.