In terms of performance, the RX 580 performs slightly better than the GTX 1060. And considering the RX 580 costs half as much as the GTX 1060, I definitely think you should go with a RX 580 if you're choosing between the two.
RX 580 is better than the GTX 1060. Also, the newest NVIDIA drivers are a bit incompatible with newer versions of Windows 10. So, now, I would advise you to buy the RX 580
Hello! I recommend the RX 580 because it has far superior performance GTX 1060. Now it depends on you what you want to do with it, gaming or video editing.