HamzaGhazouani/HGPlaceholders

'Placeholder' is ambiguous for type lookup in this context

BatyrOvezdurdyyev opened this issue · 4 comments

'The type Method is declared in two imported modules. You have to specify the module from which to use the type. Use Alamofire.Method instead of Method' in one stackoverflow answer. I cannot related struct Placeholder with HGPlaceholders. I also use Kingfisher library which has Placeholder struct in it.

Loved your library, keep going!

HI @BatyrOvezdurdyyev, thank you for your feedback, can you add a screenshot of the issue please? thanks a lot

HI @BatyrOvezdurdyyev, thank you for your feedback, can you add a screenshot of the issue please? thanks a lot

Hi, I cannot take screenshots anymore, already deleted from pods. In your example app, works with no errors. But when I use this method, gives that error. There is Placeholder type. There is another class with same name in Kingfisher library.

func view(_ view: Any, actionButtonTappedFor placeholder: Placeholder) {
        print(placeholder.key.value)
        placeholderTableView?.showDefault()
    }

Anyway, I could not use like HGPlaceholders.Placeholder to specify that class is from HGPlaceholders like Alamofire.Method .

I used https://github.com/sauvikdolui/SDStateTableView instead. But your lib is better. Keep going

D2Jgs commented

Hi,

Using HGPlaceholders.Placeholder worked for me. Something else might be the issue here.

Thanks.

@monkeywithacupcake Apparently the Kingfished library has the same class name, so you had to add the context as @D2Jgs mentioned above, thanks