The act of color picking lets you sample colors within Affinity Photo 2, then use them throughout your design.
Color sampling appears in two slightly different forms within Affinity Photo 2. It exists as a panel 'component' as well as a standalone tool.
Both versions function in slightly different ways:
Regardless of which you use, a sampled color is stored and applied from the swatch next to the color picker's icon in the Color panel.