<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hugo Pinon</title>
    <description>The latest articles on DEV Community by Hugo Pinon (@devhugopinon).</description>
    <link>https://dev.to/devhugopinon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4138340%2F2c626f33-53a5-43a0-83d6-5600f3d9d20c.png</url>
      <title>DEV Community: Hugo Pinon</title>
      <link>https://dev.to/devhugopinon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devhugopinon"/>
    <language>en</language>
    <item>
      <title>Building a Real-Time Fisheye Camera on iOS 27: Metal, Core Image &amp; Core Graphics</title>
      <dc:creator>Hugo Pinon</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:00:32 +0000</pubDate>
      <link>https://dev.to/devhugopinon/building-a-real-time-fisheye-camera-on-ios-27-metal-core-image-core-graphics-16gc</link>
      <guid>https://dev.to/devhugopinon/building-a-real-time-fisheye-camera-on-ios-27-metal-core-image-core-graphics-16gc</guid>
      <description>&lt;p&gt;Ever wondered what it takes under the hood to render a real-time 90s skate-style fisheye lens on an iPhone—without dropping a single frame? 🛹📱&lt;/p&gt;

&lt;p&gt;I recently took &lt;strong&gt;WarpyCam&lt;/strong&gt; app for a spin on &lt;strong&gt;iOS 27&lt;/strong&gt; to test its ultra-wide lens distortion in real-world street and portrait conditions. Ditching bulky clip-on hardware for software optics is great as a photographer, but watching a live camera feed warp smoothly at high frame rates immediately got my &lt;strong&gt;iOS Developer&lt;/strong&gt; brain thinking about the graphics pipeline making it possible.&lt;/p&gt;

&lt;p&gt;Here is the hands-on test footage first, followed by a breakdown of how Apple's graphics stack powers apps like this:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/HmZrfTAmAOY" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Orchestrating the iOS Real-Time Camera Pipeline
&lt;/h2&gt;

&lt;p&gt;Building a zero-latency fisheye camera app on iOS isn't just about applying a static post-processing filter. When processing live &lt;code&gt;AVFoundation&lt;/code&gt; camera buffers (&lt;code&gt;CMSampleBuffer&lt;/code&gt; / &lt;code&gt;CVPixelBuffer&lt;/code&gt;), every millisecond counts. Pull it off cleanly, and you have to balance three core Apple frameworks:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Metal: GPU Compute &amp;amp; Custom Shaders
&lt;/h3&gt;

&lt;p&gt;Real-time optical distortion requires remapping UV pixel coordinates across every incoming camera frame at &lt;strong&gt;60–120 fps&lt;/strong&gt;. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Barrel Distortion Math on the GPU:&lt;/strong&gt; Calculating radial distortion ($r' = r(1 + k_1 r^2 + k_2 r^4)$) per pixel on the CPU would bottleneck immediately. Offloading that coordinate remapping to custom &lt;strong&gt;Metal fragment shaders&lt;/strong&gt; keeps frame times ultra-low.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thermal Efficiency:&lt;/strong&gt; Efficient Metal pipelines minimize memory copies between &lt;code&gt;AVCaptureVideoDataOutput&lt;/code&gt; and the display layer (&lt;code&gt;CAMetalLayer&lt;/code&gt;), preventing thermal throttling during continuous shooting sessions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Core Image: Filter Chaining &amp;amp; Retro Aesthetics
&lt;/h3&gt;

&lt;p&gt;Lens geometry is only half of the 90s skate-video aesthetic. Nailing that authentic retro look relies on subtle &lt;strong&gt;chromatic aberration, film grain, vignette, and color grading&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Copy Chaining:&lt;/strong&gt; Using &lt;code&gt;Core Image&lt;/code&gt; (with custom &lt;code&gt;CIKernel&lt;/code&gt; functions alongside built-in distortion and color filters) lets developers chain multiple non-destructive effects into a single compiled GPU execution pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Metal-Backed &lt;code&gt;CIContext&lt;/code&gt;:&lt;/strong&gt; Initializing a &lt;code&gt;CIContext&lt;/code&gt; directly from the active &lt;code&gt;MTLDevice&lt;/code&gt; ensures Core Image and custom Metal passes share the same GPU command queue without costly CPU round-trips.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Core Graphics: 2D Viewfinder Overlays &amp;amp; Export Composition
&lt;/h3&gt;

&lt;p&gt;While Metal and Core Image handle the heavy pixel-level lifting, &lt;strong&gt;Core Graphics (&lt;code&gt;CGContext&lt;/code&gt;)&lt;/strong&gt; shines when dealing with vector precision and final image composition:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Crisp UI &amp;amp; Framing Guides:&lt;/strong&gt; Drawing resolution-independent viewfinder reticles, rule-of-thirds grids, and live HUD indicators cleanly across different iPhone screen densities.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Final Export Rendering:&lt;/strong&gt; Compositing authentic retro timestamps, borders, or metadata stamps onto the high-resolution captured &lt;code&gt;UIImage&lt;/code&gt; / &lt;code&gt;CGImage&lt;/code&gt; before saving to the Photo Library.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Seeing apps push native &lt;strong&gt;iOS 27&lt;/strong&gt; camera capabilities like this is always inspiring—especially when complex GPU engineering stays completely invisible to the person behind the shutter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Over to you, fellow iOS &amp;amp; graphics devs:&lt;/strong&gt; When building real-time camera filters, do you prefer writing &lt;strong&gt;custom Metal shaders&lt;/strong&gt; from scratch for maximum control, or leaning on &lt;strong&gt;Core Image&lt;/strong&gt; filter chains for faster iteration? Drop your thoughts (and favorite shader tricks) in the comments! 👇&lt;/p&gt;

</description>
      <category>ios</category>
      <category>swift</category>
      <category>swiftui</category>
      <category>mobile</category>
    </item>
    <item>
      <title>Designing a 3D Periodic Table for iPhone Duo: Reimagining Foldable UI/UX</title>
      <dc:creator>Hugo Pinon</dc:creator>
      <pubDate>Sat, 31 Oct 2026 18:04:44 +0000</pubDate>
      <link>https://dev.to/devhugopinon/designing-a-3d-periodic-table-for-iphone-duo-reimagining-foldable-uiux-50b2</link>
      <guid>https://dev.to/devhugopinon/designing-a-3d-periodic-table-for-iphone-duo-reimagining-foldable-uiux-50b2</guid>
      <description>&lt;p&gt;&lt;strong&gt;A deep dive into the UI/UX design decisions behind building an immersive, dual-screen 3D Periodic Table app optimized for foldable iPhone hardware&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Designing interface layouts for dual-screen and foldable devices like the &lt;strong&gt;iPhone Duo&lt;/strong&gt; requires rethinking traditional single-viewport ergonomics to maximize real estate without cluttering the visual field. In &lt;strong&gt;Periodic Table Chemistry 2027 app&lt;/strong&gt;, the dual-display architecture establishes a logical separation between macro navigation and micro content inspection. Opening the device reveals a balanced split workspace: the comprehensive periodic table stays pinned to one screen, while the complementary display renders interactive 3D models—such as gas balloons illustrating Helium—alongside immediate atomic and physical properties. This spatial split minimizes context switching, allowing users to study detailed element attributes while keeping the complete chemical landscape in full view.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fifgllpj4363ohfts4ij3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fifgllpj4363ohfts4ij3.jpg" alt="iPhone Duo Inner Display" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fluid adaptability across physical folding states is critical for next-generation mobile UX, requiring a UI that scales seamlessly whether the device is expanded or closed. When collapsed into a single display, Periodic Table Chemistry 2027 app transitions effortlessly into an optimized single-screen layout tailored for efficient one-handed interactions. The UI dynamically recalibrates high-density data cards and 3D visual assets—such as a battery representation for Lithium—while preserving high-contrast dark mode aesthetics, clean typography, and quick access to core metrics like atomic mass and electron configurations. This design strategy guarantees an uninterrupted user experience when moving from quick reference lookups to full dual-screen workflows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F78pvi3olrh2w9tc06e5j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F78pvi3olrh2w9tc06e5j.png" alt="iPhone Duo Outer Display" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Leveraging spanned viewports allows for rich, immersive modal presentations that turn standard educational reference tools into tactile 3D experiences. When inspecting complex elements like Protactinium, the application presents an enlarged central 3D viewport spanning across the hinge line, granting users tactile manipulation and detailed spatial rendering of elemental structures. Strategic positioning of translucent control overlays and background grids preserves visual hierarchy, ensuring navigation remains accessible without obstructing the visual focal point. By placing dual-screen ergonomics and responsive visual layout at the center of development, Periodic Table Chemistry 2027 app offers a template for modern, canvas-aware application design.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2i08lfk85m8hbbeltz42.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2i08lfk85m8hbbeltz42.png" alt="iPhone Duo and 3D Periodic Table" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Designing for multi-screen foldables isn't just about handling dynamic screen bounds—it’s about crafting contextual spatial workflows that elevate everyday utility. Periodic Table Chemistry 2027 app demonstrates how thoughtful layout architecture can transform complex educational data into an intuitive, visually rich 3D experience across both single and spanned displays. As dual-screen hardware continues to evolve, rethinking conventional interface boundaries opens exciting new possibilities for mobile design. You can explore the interactive 3D elements and dual-screen interface firsthand by checking out &lt;a href="https://apps.apple.com/us/app/periodic-table-chemistry-2026/id1471848710" rel="noopener noreferrer"&gt;Apple App Store Link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsuwafakvu9wx2deqhmfr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsuwafakvu9wx2deqhmfr.png" alt="Apple App Store and 3D Periodic Table" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ios</category>
      <category>mobile</category>
      <category>design</category>
      <category>ui</category>
    </item>
  </channel>
</rss>
