Post

Replies

Boosts

Views

Activity

Reply to afet update xcode 13 color Literal previews not showing
i saw this on the stackoverflow comments of a related issue, i tried it and it worked for me... you have to actually type out #colorLiteral() and it will turn it into the color picker that you're expecting... var color = #colorLiteral() //at this point it will turn this #colorLiteral into a broken image icon, but that's your color picker... and it'll look right after you select a color. Rectangle().fill(Color(color)) // then just pass in the color you instantiated above At the end it should look something like this:
Jan ’22
Reply to Color literal not displaying as Color Swatch?
i saw this on the stackoverflow comments of a related issue, i tried it and it worked for me... you have to actually type out #colorLiteral() and it will turn it into the color picker that you're expecting... var color = #colorLiteral() //at this point it will turn this #colorLiteral into a broken image icon, but that's your color picker... and it'll look right after you select a color. Rectangle().fill(Color(color)) // then just pass in the color you instantiated above code-block At the end it should look something like this:
Jan ’22