LiveUI / Awesome

FontAwesome 6 Swift & SwiftUI implementation for iOS, tvOS & macOS
MIT License
97 stars 27 forks source link

How To Have Awesome.Image as a parameter? #74

Closed chitgoks closed 1 year ago

chitgoks commented 1 year ago

it doesnt accept if i do this

func test(_ icon: Awesome.Image? = nil) {
}

I am trying to avoid using AnyView here. is it possible?

rafiki270 commented 1 year ago

Can you just use Amazing? (Protocol)

chitgoks commented 1 year ago

still new. you mean like

func(_ temp: Amazing)

?