Let's say that I hatch a perfect IV Riolu in Sword/Shield. Is there a way I can get it to evolve before leveling up so have a level 1 or 2 Lucario?
You can max out the friendship at level 1, but you need to level it up in order to evolve it.
Source: Experience