When syncing an NSAttributedString between devices, it seems that macOS system colors are decoded as "UIExtendedGrayColorSpace" black color on iOS. For example, if I have text on the Mac and chose systemColorRed, this is converted to UIExtendedGrayColorSpace black on iOS.
I would like to convert the macOS system red (for example) to the iOS system red, but I'm not sure the best way to do this.
My question is: has anyone discovered an efficient and clean way to convert macOS system colors to iOS system colors when syncing between devices?
I have seen that the system colors on both devices have a consistent hex value when reading the color components. A possible solution would be to save the hex value of the colors in the attributed string. We could then enumerate the hex values and exchange the attributed string foreground color for the appropriate system color of whatever device is being used. I would greatly appreciate thoughts regarding this.
Thank you everyone!