Will live preview in SwiftUI and the Xcode 11 works on MacBook Pro Retina 2012 perfectly well? The MacBook Pro 2012 still great in 2019? I'm thinking about buying me one. I have a low budget and I need a MacBook Pro that will work for 3-5 years from now, being me a ”Pro” user.
I am typing this from a mid-2012 retina MBP which is running Catalina and Xcode 11 just fine. SwiftUI previews take a few seconds to come up, but work great.
My one concern is that you mention wanting it to work 3–5 years from now. While it might still be suitable for general use then (my mom, for example, gets by running the latest version of MS Office on High Sierra on a mid-2010 MBP), it may not support the latest versions of the operating system or Xcode at that time. As you may be aware, mid-2012 is the oldest MacBook Pro that can officially run macOS Catalina, so I would expect support to be dropped in some subsequent release.