Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
41dc0bb0
Commit
41dc0bb0
authored
Aug 16, 2018
by
Soomin Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCEditController: TextFieldAlertInfo: Add confirm title
parent
918e3dd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Sources/VLCEditController.swift
Sources/VLCEditController.swift
+10
-1
No files found.
Sources/VLCEditController.swift
View file @
41dc0bb0
...
...
@@ -55,6 +55,15 @@ private extension VLCEditController {
private
struct
TextFieldAlertInfo
{
var
alertTitle
:
String
var
placeHolder
:
String
var
confirmActionTitle
:
String
init
(
alertTitle
:
String
=
""
,
placeHolder
:
String
=
""
,
confirmActionTitle
:
String
=
NSLocalizedString
(
"BUTTON_DONE"
,
comment
:
""
))
{
self
.
alertTitle
=
alertTitle
self
.
placeHolder
=
placeHolder
self
.
confirmActionTitle
=
confirmActionTitle
}
}
private
func
presentTextFieldAlert
(
with
info
:
TextFieldAlertInfo
,
...
...
@@ -72,7 +81,7 @@ private extension VLCEditController {
style
:
.
default
)
let
confirmAction
=
UIAlertAction
(
title
:
NSLocalizedString
(
"BUTTON_DONE"
,
comment
:
""
)
,
style
:
.
default
)
{
let
confirmAction
=
UIAlertAction
(
title
:
info
.
confirmActionTitle
,
style
:
.
default
)
{
[
weak
alertController
]
_
in
guard
let
alertController
=
alertController
,
let
textField
=
alertController
.
textFields
?
.
first
else
{
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment