With iCloud Shared Photo Library, users can share photos and videos with family and friends in one place where everyone can view, add to, and edit content, even content they haven't shared yet. In addition to sharing your current photos to the Shared Library, Apple also lets you transfer photos you take directly from the Camera app to the Shared Library in real time.
How to Stop Sharing Photos Between iPhone and iPad, Mac or iPhone
If you have taken photos and videos with Shared Library mode enabled on your camera, learn how to disable this feature on your iPhone in the following post.
Related: How to Enable and Set Up a Shared Photo Library on iPhone
The photos and videos you take from now on will not be sent to the Shared Library, but will be saved to your Personal Library.