iPhoto used to do this. The Mac photos app that has replaced it since is nowhere near as good.
In fact I would go so far as to say my personal photo management never really recovered from the transition.