Skip to content

Commit

Permalink
Remove “title” argument label in FlickTypetextEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
keleftheriou committed Jul 4, 2021
1 parent d86ea21 commit 7872d17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct ContentView: View {
ScrollView {
VStack {
// other views here...
<b>FlickTypeTextEditor(text: $text)</b>
<b>FlickTypeTextEditor("Message", text: $text)</b>
// more views here...
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ struct ContentView: View {
}) {
Text("SwiftUI").foregroundColor(.orange)
}.frame(maxWidth: 100)
FlickTypeTextEditor(title: "Tap to edit…", text: $text1)
FlickTypeTextEditor(title: "Tap to edit…", text: $text2)
FlickTypeTextEditor(title: "Tap to edit…", text: $text3)
FlickTypeTextEditor("Tap to edit…", text: $text1)
FlickTypeTextEditor("Tap to edit…", text: $text2)
FlickTypeTextEditor("Tap to edit…", text: $text3)
Text("FlickTypeKit v\(FlickType.sdkVersion)").font(.footnote).foregroundColor(.gray)
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/FlickTypeKit/FlickTypeKit-SwiftUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public struct FlickTypeTextEditor: View {
private let mode: FlickType.Mode
private let onCommit: () -> Void

public init(title: LocalizedStringKey = "", text: Binding<String>, mode: FlickType.Mode = .ask, onCommit: @escaping () -> Void = {}) {
public init(_ title: LocalizedStringKey = "", text: Binding<String>, mode: FlickType.Mode = .ask, onCommit: @escaping () -> Void = {}) {
self.title = title
self._text = text
self.mode = mode
Expand Down

0 comments on commit 7872d17

Please sign in to comment.