Skip to content

Commit

Permalink
Rename customInputWidth to customInputMinWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
acb-mv committed Nov 26, 2024
1 parent 341d112 commit d771f70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct ShadowsocksObfuscationSettingsView<VM>: View where VM: ShadowsocksObfusca
value: "Valid range: 1 - 65535",
comment: ""
),
customInputWidth: 100,
customInputMinWidth: 100,
customInputMaxLength: 5,
customFieldMode: .numericText
).onDisappear {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct SingleChoiceList<Value>: View where Value: Equatable {
label: String,
prompt: String,
legend: String?,
inputWidth: CGFloat?,
minInputWidth: CGFloat?,
maxInputLength: Int?,
toValue: (String) -> Value?,
fromValue: (Value) -> String?
Expand Down Expand Up @@ -149,7 +149,7 @@ struct SingleChoiceList<Value>: View where Value: Equatable {
customLabel: String,
customPrompt: String,
customLegend: String? = nil,
customInputWidth: CGFloat? = nil,
customInputMinWidth: CGFloat? = nil,
customInputMaxLength: Int? = nil,
customFieldMode: CustomFieldMode = .freeText
) {
Expand All @@ -159,7 +159,7 @@ struct SingleChoiceList<Value>: View where Value: Equatable {
label: customLabel,
prompt: customPrompt,
legend: customLegend,
inputWidth: customInputWidth,
minInputWidth: customInputMinWidth,
maxInputLength: customInputMaxLength,
toValue: parseCustomValue,
fromValue: formatCustomValue
Expand Down Expand Up @@ -337,7 +337,8 @@ struct SingleChoiceList<Value>: View where Value: Equatable {
customLabel: "Custom",
customPrompt: "Number",
customLegend: "The legend goes here",
customInputWidth: 120
customInputMinWidth: 120,
customInputMaxLength: 6
)
}
}

0 comments on commit d771f70

Please sign in to comment.