ok so your in osx10.14 with the RX 580 and the display is not outputting the correct resolution ?
your not talking about some kind of artifacting interference or graphical corruption colour cast or other problems?
I assume resolution is what your talking about when you say 'Image is crap'?
got to ask are you only getting single link DVI cable resolution options?
you have a RX 580 -> cable kind? -> apple display
assume the apple display is the 2560 × 1600 sing Dual-link DVI-D
so 99% sure you have an incorrect cable as thats the normal problem
have you done any troubleshooting?
have you tried SwitchResX
https://www.madrau.com/
you can also look in system info to see what it says