SvenTiigi / WhatsNewKit

Showcase your awesome new app features 📱
https://sventiigi.github.io/WhatsNewKit/
MIT License
3.87k stars 190 forks source link

exposing the SwiftUI Image in WhatsNew.Feature.Image #79

Closed yqiang closed 6 months ago

yqiang commented 7 months ago

Is your feature request related to a problem?

In addition to showing a sheet, I'm trying to create a simple List view that shows all the updates by enumerating the WhatsNewItems. One issue I ran into is that the WhatsNew.Feature.Image is essentially a type erased image, so you can't apply Image specific SwiftUI modifiers to it.

What solution would you like?

It would be great if somehow the SwiftUI Image was exposed so that one can apply Image specific modifiers.

What alternatives have you considered?

N/A

Any additional context?

IMG_E4B431E44BDB-1

The above is the screen I'm trying to create.

SvenTiigi commented 6 months ago

Since the underlying image is retained via a view builder closure there is currently no direct way in retrieving the SwiftUI.Image instance.

Please feel free to open up a PR.