Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

keyvaluepairs

  1. Akrapovic

    iOS Swift - Converting a Dictionary to a KeyValuePair

    I'm trying to use the brand new Sift Chart framework, and the chartForegroundStyleScale function takes a KeyValuePairs as the argument. I tried supplying a Dictionary (of [String:Color], but I get the error Cannot convert value of type '[String : Color]' to expected argument type...