“update with Macro Mode is available on all iPhones with a neural engine, which means the iPhone 8 or newer, and it produces full 4K resolution JPEGs”

Link. Clever. Halide Pro.