ESP8266 doesn’t connect to WiFi when powered by power supply

I’m using an original Apple charger for an iPhone, I don’t know if they are better or worse than an average power supply.

Since I need to buy another are there some specs that I need to look for?