Open LuegM opened 2 months ago
Is it possible to initialize with a text (icon) instead of an image? I would want to use FontAwesome which i have integrated as font and would like to use like that:
Text("").font(.custom("FontAwesome6Duotone-Solid", size: size))
But how to use that here?
.init( image: .init( ), title: "", subtitle: "" )
Hi @LuegM,
Yes! You can initialize a WhatsNew.Feature.Image with a custom view e.g. a Text with a custom font using the following initializer:
WhatsNew.Feature.Image
https://github.com/SvenTiigi/WhatsNewKit/blob/6157c77e8be9b3d2310bc680681b61a8d9e290ac/Sources/Models/WhatsNew%2BFeature%2BImage.swift#L17-L25
Is it possible to initialize with a text (icon) instead of an image? I would want to use FontAwesome which i have integrated as font and would like to use like that:
Text("").font(.custom("FontAwesome6Duotone-Solid", size: size))
But how to use that here?