Skip to content

Changing Background Color for RMStep hides Separators #31

@anum90

Description

@anum90

I am changing colors for RMBarStep in the RMStep.m for disabled, enabled and selected bars. For example, For enabled bar:

  • (UIColor *)enabledBarColor {
    if(!_enabledBarColor) {
    self.enabledBarColor = [UIColor colorWithRed:46/255.0 green:174/255.0 blue:241/255.0 alpha:0.7];
    }

    return _enabledBarColor;
    }

If I change color of the bar, separators are hidden. I guess because separators are layered below bar textlabel, that is why it is happening. If I lower the alpha value of bar background color, separators are better visible.

Alpha : 0.7

screen shot 2015-03-19 at 11 42 39 pm

Alpha 1.0:

screen shot 2015-03-19 at 11 43 32 pm

The separators are actually red colored here, shown blue due to blue color overlap.

As a work around, I tried to change the background color of RMStepBar to blue, and cleared the colors for individual steps. But still background color is very lightly visible, as if some white layer with lower alpha has been placed over steps.

screen shot 2015-03-19 at 11 46 03 pm

Please suggest me something to solve this issue. I have already taken one week. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions