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

Seems that .accentColor is not working #92

Closed
Fl34r opened this issue Nov 4, 2022 · 2 comments
Closed

Seems that .accentColor is not working #92

Fl34r opened this issue Nov 4, 2022 · 2 comments
Assignees
Labels

Comments

@Fl34r
Copy link

Fl34r commented Nov 4, 2022

Description of the problem:
Using .accentColor(.red) modifier on the MultiValueSlider still shows a system blue track

Minimal project that reproduces the problem (so I'll be able to figure out how to fix it):
import SwiftUI
import MultiSlider

struct SliderView: View {
@ObservedObject var viewModel: SliderViewModel

var body: some View {
    MultiValueSlider(
        value: $viewModel.valueBounds,
        minimumValue: CGFloat(viewModel.range.lowerBound),
        maximumValue: CGFloat(viewModel.range.upperBound),
        snapStepSize: CGFloat(viewModel.stepSize),
        valueLabelPosition: .top,
        orientation: .horizontal,
        outerTrackColor: .gray,
        valueLabelColor: .blue,
        showsThumbImageShadow: true,
        trackWidth: 4.0,
        hasRoundTrackEnds: true,
        keepsDistanceBetweenThumbs: true
    )
    .accentColor(.red)
    .padding(.top, 8)
}

}

@Fl34r Fl34r added the bug label Nov 4, 2022
@yonat yonat closed this as completed in cbfc7d8 Nov 7, 2022
@yonat
Copy link
Owner

yonat commented Nov 7, 2022

Thanks for reporting, fixed in 1.13.2.

@Fl34r
Copy link
Author

Fl34r commented Nov 8, 2022

Thanks!

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

No branches or pull requests

2 participants