Skip to content

Left button support - Clean up - #43

Merged
rnystrom merged 3 commits into
GitHawkApp:masterfrom
Fogh:left_button_cleanup
Mar 14, 2018
Merged

Left button support - Clean up#43
rnystrom merged 3 commits into
GitHawkApp:masterfrom
Fogh:left_button_cleanup

Conversation

@Fogh

@Fogh Fogh commented Mar 14, 2018

Copy link
Copy Markdown
Contributor

Clean up for the left button PR - #33

Fogh added 2 commits March 14, 2018 09:26
@Fogh Fogh self-assigned this Mar 14, 2018

@BasThomas BasThomas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

case .right:
setRight(buttonIcon: buttonIcon, for: state)
break
case .left:

@BasThomas BasThomas Mar 14, 2018

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could even make the switch only care about setting the right button:

let button: UIButton
switch type {
case .left:
  button = leftButton
case .right
  button = rightButton
}
button.setImage(buttonIcon, for: state)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I have implemented that 👍

@rnystrom

Copy link
Copy Markdown
Member

Mind fixing up the conflicts?

Sent with GitHawk

@BasThomas

Copy link
Copy Markdown
Collaborator

There shouldn’t be any?

Sent with GitHawk

@rnystrom

rnystrom commented Mar 14, 2018

Copy link
Copy Markdown
Member

Oh might be a GitHawk bug 😬 button showed as conflicts

Sent with GitHawk

@rnystrom
rnystrom merged commit 06ecf04 into GitHawkApp:master Mar 14, 2018
@BasThomas

Copy link
Copy Markdown
Collaborator

img_1915
Was green for me!

@rnystrom

Copy link
Copy Markdown
Member

Ya it turned green for me too. It happened in another PR, something is off

Sent with GitHawk

@Fogh
Fogh deleted the left_button_cleanup branch March 17, 2018 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants