Photo library permissions have been around since iOS 14. As long as you have an iPhone made in the last ten years you should be able to use it.