You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the library, very helpful for my project!
But...
Given the update on Amazing (public protocol Amazing: RawRepresentable, CaseIterable where RawValue == String) we could write
var icon: Amazing {
switch self {
case .conversations:
return AwesomePro.Regular.comment
case .statistics:
return AwesomePro.Solid.chartPie
}
}
Now we can't :( Protocol 'Amazing' can only be used as a generic constraint because it has Self or associated type requirements
The text was updated successfully, but these errors were encountered:
@rafiki270 @ghowen Any ideas? In extensions we use the generic <AmazingType: Amazing>, but as far as I know we can't do that with variable types, plus it would hurt readability for the API consumer.
Well, as a quick hack I would suggest you return another type for now ... like image or attributed string. I’ll try to check some options about this asap
Hi there!
Thanks for the library, very helpful for my project!
But...
Given the update on Amazing (
public protocol Amazing: RawRepresentable, CaseIterable where RawValue == String
) we could writeNow we can't :(
Protocol 'Amazing' can only be used as a generic constraint because it has Self or associated type requirements
The text was updated successfully, but these errors were encountered: