<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ufuk Öztop on Medium]]></title>
        <description><![CDATA[Stories by Ufuk Öztop on Medium]]></description>
        <link>https://medium.com/@ufuk.oztp?source=rss-39e42f9f2493------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oposiTbDAbE-n3OMHMCg4g.jpeg</url>
            <title>Stories by Ufuk Öztop on Medium</title>
            <link>https://medium.com/@ufuk.oztp?source=rss-39e42f9f2493------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:36:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ufuk.oztp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Flutter & iOS Render Pipeline (Deep Dive): Why Isn’t UIKit Used?]]></title>
            <link>https://medium.com/@ufuk.oztp/flutter-ios-render-pipeline-deep-dive-uikit-neden-yok-18254d04a913?source=rss-39e42f9f2493------2</link>
            <guid isPermaLink="false">https://medium.com/p/18254d04a913</guid>
            <category><![CDATA[rendering]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Ufuk Öztop]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 18:04:13 GMT</pubDate>
            <atom:updated>2026-01-12T18:32:34.810Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mthF-hk-_KwEC3QUyhK-GA.png" /></figure><p>When it comes to UI development on iOS, <strong>UIKit</strong> or <strong>SwiftUI</strong> are usually the first things that come to mind.<br>However, if you inspect a Flutter-based iOS app in Xcode, you won’t see the typical UIView hierarchy, AutoLayout constraints, or a CoreAnimation-based rendering flow.</p><p>As someone who has been developing mobile apps for over <strong>5+ years</strong>, actively working with both <strong>iOS</strong> and <strong>Flutter</strong>, I’ve always been curious about why Flutter doesn’t use UIKit on iOS and how Flutter approaches UI rendering on Apple platforms.<br>In this article, I’ll briefly walk through how Flutter works behind the scenes and how its build process differs from native iOS.</p><p>The reason is simple: Flutter does <strong>not</strong> use UIKit as a UI framework.<br>Instead, Flutter runs its own rendering engine, layout system, and UI pipeline on iOS, while UIKit is used only as a <strong>host environment</strong>.</p><p>So, why doesn’t Flutter use UIKit on iOS?</p><h3>What Does UIKit Do?</h3><p>UIKit is Apple’s native UI framework for iOS. It handles:</p><ul><li>UIView hierarchy</li><li>AutoLayout constraint system</li><li>Rendering via CoreAnimation</li><li>Touch event handling</li><li>ViewController lifecycle management</li></ul><p>In UIKit, a screen is rendered through the following pipeline:</p><pre>UIView → CALayer → CoreAnimation → GPU</pre><p>Flutter intentionally does <strong>not</strong> use this system.</p><h3>Flutter’s UI Pipeline</h3><p>Flutter’s architecture is completely different from UIKit:</p><pre>Widget → Element → RenderObject → Render Engine → GPU</pre><p>Flutter does not use:</p><ul><li>UIView</li><li>AutoLayout</li><li>CoreAnimation</li><li>Native navigation stack</li></ul><p>Instead, all UI is produced by:</p><ul><li>The Flutter Engine</li><li>Flutter’s own layout system</li><li>Flutter’s own rendering engine</li></ul><p>UIKit’s role is limited to:</p><blockquote><em>“Create a window, manage the lifecycle, and forward input events to Flutter.”</em></blockquote><h3>What Does FlutterViewController Do?</h3><p>On iOS, a Flutter app is typically launched like this:</p><pre>let flutterVC = FlutterViewController()<br>window.rootViewController = flutterVC</pre><p>This UIViewController:</p><ul><li>Starts the Flutter Engine</li><li>Creates the GPU surface</li><li>Schedules frame rendering</li><li>Forwards iOS lifecycle events to Flutter</li></ul><p>But it does <strong>not</strong> render the UI.</p><p>The UI is produced entirely by the Flutter Engine, and this ViewController only acts as a <strong>container</strong>.</p><p>That’s why a Flutter app appears as a “single ViewController” on iOS.</p><h3>Build Process: LLVM and Dart AOT</h3><p>On iOS, Swift and Objective-C code are compiled through Apple’s <strong>LLVM-based Clang toolchain</strong>:</p><pre>Swift / Obj-C → AST → SIL → LLVM IR → ARM64 → Binary</pre><p>Dart, however, does <strong>not</strong> use LLVM.</p><p>Flutter uses its own <strong>AOT (Ahead-Of-Time) compiler</strong> to convert Dart code directly into native ARM64 machine code:</p><pre>Dart → Flutter AOT → ARM64</pre><p>In the final step:</p><ul><li>Flutter Engine (C++)</li><li>iOS native code</li><li>Dart AOT output</li></ul><p>are all linked together by Apple’s linker into a single <strong>Mach-O binary</strong>.</p><p>So a Flutter app is <strong>not</strong> a runtime script — <br>it is a fully native iOS executable.</p><h3>Add-to-App: How Flutter Integrates with UIKit</h3><p>Even though Flutter doesn’t use UIKit for UI rendering, you can still embed Flutter screens into an existing iOS app.</p><p>In this setup:</p><ul><li>A FlutterEngine is created</li><li>A FlutterViewController is attached to that engine</li><li>The Flutter screen is pushed into the native navigation stack</li></ul><p>The FlutterEngine hosts the Dart runtime and UI pipeline, while<br>FlutterViewController simply displays the frames rendered by Flutter.</p><p>So Flutter:</p><ul><li>Does <strong>not</strong> integrate into UIKit’s UI system</li><li>But <strong>does</strong> integrate with UIKit’s lifecycle</li></ul><p>This is called <strong>UI engine embedding</strong>, not UI framework integration.</p><h4>Why Doesn’t Flutter Use UIKit?</h4><p>There are several architectural reasons behind this decision:</p><h4>1. Cross-Platform Consistency</h4><p>The same UI behavior is preserved across iOS, Android, Web, and Desktop.</p><h4>2. Full Render Control</h4><p>Flutter draws every pixel using its own engine.</p><h4>3. Performance</h4><p>A more deterministic pipeline compared to AutoLayout + CoreAnimation.</p><h4>4. UI Independence</h4><p>No dependency on platform UI frameworks.</p><h4>5. Architectural Simplicity</h4><p>One render system, one layout engine, one UI model.</p><h3>In Summary</h3><p>On iOS, Flutter:</p><ul><li>Does not use UIKit</li><li>Does not create a UIView hierarchy</li><li>Does not render with CoreAnimation</li><li>Does not rely on AutoLayout</li></ul><p>Instead, it uses:</p><ul><li>Its own rendering engine</li><li>Its own layout system</li><li>Its own UI pipeline</li></ul><p>So a Flutter app is:</p><blockquote><em>Not “an iOS app built with UIKit”,<br>but “a UI engine running inside UIKit.”</em></blockquote><h3>Next Deep Dive 👀</h3><h3>How Does Flutter Really Draw UI?</h3><p><strong>The Story Behind RenderObject Tree, Layout, Paint, and Hit-Test</strong></p><p>In this article, we explored why Flutter doesn’t use UIKit on iOS.<br>In the next one, we’ll dive into the actual rendering pipeline:</p><ul><li>From Widget to RenderObject</li><li>The layout process</li><li>The paint phase</li><li>Hit-testing (how touch events are detected</li><li>RenderObject architecture and performance implications</li></ul><p>In short:</p><p><strong>How does Flutter UI really work?</strong><br>Not just <em>what</em> happens — but <em>why</em> it happens this way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18254d04a913" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>