You can simply copy the more recent library to the other Mac. You have to do this each time you switch the Macs, and remember to do it.
But it will be an heavy file.
Do you keep your picture inside the library or referenced on an external drive ?
If they are referenced the library will be smaller, but it will be necessary to connect the same drive if you wish to edit the picture and not only see them.