Apple factories that are horrible?

So I heard the factories that make apple products are horrible and treat their workers like slaves.

Can you tell me more about how bad the factories are? I might a samsung phone instead of another apple iphone for my next phone.