Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
85c13ac2
Commit
85c13ac2
authored
Jan 13, 2018
by
Orkhan Alikhanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed ..Button prefix from DialogBuilder
parent
f58b6471
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Sources/iOS/DialogBuilder.swift
+3
-4
No files found.
Sources/iOS/DialogBuilder.swift
View file @
85c13ac2
...
@@ -35,25 +35,24 @@ open class DialogBuilder<T: DialogView> {
...
@@ -35,25 +35,24 @@ open class DialogBuilder<T: DialogView> {
return
self
return
self
}
}
open
func
positive
Button
(
_
title
:
String
?,
handler
:
(()
->
Void
)?)
->
DialogBuilder
{
open
func
positive
(
_
title
:
String
?,
handler
:
(()
->
Void
)?)
->
DialogBuilder
{
dialogView
.
positiveButton
.
title
=
title
dialogView
.
positiveButton
.
title
=
title
controller
.
positiveHandler
=
handler
controller
.
positiveHandler
=
handler
return
self
return
self
}
}
open
func
negative
Button
(
_
title
:
String
?,
handler
:
(()
->
Void
)?)
->
DialogBuilder
{
open
func
negative
(
_
title
:
String
?,
handler
:
(()
->
Void
)?)
->
DialogBuilder
{
dialogView
.
negativeButton
.
title
=
title
dialogView
.
negativeButton
.
title
=
title
controller
.
negativeHandler
=
handler
controller
.
negativeHandler
=
handler
return
self
return
self
}
}
open
func
neutral
Button
(
_
title
:
String
?,
handler
:
(()
->
Void
)?)
->
DialogBuilder
{
open
func
neutral
(
_
title
:
String
?,
handler
:
(()
->
Void
)?)
->
DialogBuilder
{
dialogView
.
neutralButton
.
title
=
title
dialogView
.
neutralButton
.
title
=
title
controller
.
neutralHandler
=
handler
controller
.
neutralHandler
=
handler
return
self
return
self
}
}
@discardableResult
@discardableResult
open
func
show
(
_
vc
:
UIViewController
)
->
DialogBuilder
{
open
func
show
(
_
vc
:
UIViewController
)
->
DialogBuilder
{
vc
.
present
(
controller
,
animated
:
true
,
completion
:
nil
)
vc
.
present
(
controller
,
animated
:
true
,
completion
:
nil
)
...
...
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