Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property for the switch background color #2

Merged
merged 1 commit into from
Jan 17, 2017
Merged

Conversation

Darkkrye
Copy link
Contributor

Hi, I've downloaded your lib because I've found it really nice.
But when I've started to use it, I've found something missing.

What I've found:

I have found that it is impossible to just change the switch background color. When you use the "backgroundColor" property nothing happen and the background still stay in white.

What I've done :

  • I have created an IBDesignable property called "backColor" to allows user to change the switch background color.
  • I also have created a new test function to be sure the code I've written works.

Commit description :

Added property to change the switch background color.
Added test for the property.

@codecov-io
Copy link

codecov-io commented Jan 16, 2017

Current coverage is 42.02% (diff: 100%)

Merging #2 into master will increase coverage by 2.63%

@@             master         #2   diff @@
==========================================
  Files             2          2          
  Lines           132        138     +6   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits             52         58     +6   
  Misses           80         80          
  Partials          0          0          

Powered by Codecov. Last update c55d603...895955f

@T-Pham
Copy link
Owner

T-Pham commented Jan 17, 2017

Cool! Thanks, @Darkkrye. I will make some minor update and release a new version with this included.

@T-Pham T-Pham merged commit 7b05726 into T-Pham:master Jan 17, 2017
@Darkkrye
Copy link
Contributor Author

Darkkrye commented Jan 17, 2017

Ok. Glad to have helped :)

@T-Pham
Copy link
Owner

T-Pham commented Jan 25, 2017

@Darkkrye just wanted to updating you that backColor is included in v2.0.1.

@Darkkrye
Copy link
Contributor Author

Nice ! Thanx a lot ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants