iOS has it, it’s called focus mode. But good luck actually having the resolve to stay in it. (Plus the app drawer kinda defeats the idea again).
Problems: cannot totally disable apps like in the app usage settings. And there you cannot really schedule blocks where you can access them. Also: the allowed apps list has a bug which makes it unusable.
I have no idea why these two features are distinct. (mean thought: maybe apple doesn’t actually want us to use it properly?)