<Image
id={`img_${index}`}
key={`img_${index}`}
src={url}
alt={url}
unoptimized={true}
priority={true}
layout="fill"
objectFit='contain'
onLoadingComplete={() => {
if (!loadedUrls.includes(url)) {
setLoadedUrls((loadedUrls) => [...loadedUrls.filter(x => x !== url), url])
}
}}
/>
for some reason on desktop this works great. But on iOS sometimes I have to refresh the page for the image to show. I inspected with Inspector on my iPhone and the image had no width or proper height from the static source image file. Yet when I reloaded the page after it's inital download of the images it was correct. Why....