Is it possible to make an image link to an external link in Apple News Format?

119 views Asked by At

I'm new to Apple News Format and was asked to place a banner on our Apple News articles that links to our external website on a browser.

But I'm not seeing a way to do so. I'm using the Image component, which supports additions for ComponentLinks, which are for internal links only.

Does anyone know of a workaround? It seems like only Text components support external links (via LinkAdditions), so I'm not sure if it's just not feasible with an image or if I'm missing something.

1

There are 1 answers

0
check On

I had the same issue. Wasn't able to make an image with an external link work but the workaround we used was to use an image as the background using an ImageFill in a wrapper container and a body component with html format and a link inside. You can format the text inside the link by using <span data-anf-textstyle="myStyle"> tags and setting the styles in the textStyles configuration.