{"id":219,"date":"2021-09-25T00:52:44","date_gmt":"2021-09-25T00:52:44","guid":{"rendered":"https:\/\/bpluscom.net\/?p=219"},"modified":"2022-04-19T16:16:05","modified_gmt":"2022-04-19T16:16:05","slug":"differences-between-flutter-and-swiftui","status":"publish","type":"post","link":"https:\/\/bpluscom.net\/en\/programming\/differences-between-flutter-and-swiftui\/","title":{"rendered":"Differences between Flutter and swiftui"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_69_1 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" >Spis tre\u015bci<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/bpluscom.net\/en\/programming\/differences-between-flutter-and-swiftui\/#Flutter_vs_swiftui_%E2%80%93_transparency\" title=\"Flutter vs swiftui &#8211; transparency\">Flutter vs swiftui &#8211; transparency<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/bpluscom.net\/en\/programming\/differences-between-flutter-and-swiftui\/#Both_solutions_in_terms_of_maturity\" title=\"Both solutions in terms of maturity\">Both solutions in terms of maturity<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Flutter_vs_swiftui_%E2%80%93_transparency\"><\/span>Flutter vs swiftui &#8211; transparency<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-220 alignleft\" src=\"https:\/\/bpluscom.net\/wp-content\/uploads\/2021\/10\/pexels-photo-92904800-300x200.jpg\" alt=\"flutter vs swiftui\" width=\"300\" height=\"200\" \/>If you are curious about the differences between creating views in <strong>Flutter vs Swiftui<\/strong>, I recommend checking out the experiment in which the SwiftUI sample application was recreated in Flutter at WWDC 2019.\u00a0The results were very similar, but thanks to Flutter&#8217;s relative maturity, writing code is a bit faster.\u00a0On the other hand, SwiftUI will undoubtedly be easier for an iOS developer than using Dart, the language created by Google and on which Flutter is based.\u00a0In my opinion, SwiftUI is definitely cleaner than Flutter, mainly because it was designed exclusively for iOS devices. Flutter, built to support both iOS and Android, needs more code to achieve the same goals.<\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Both_solutions_in_terms_of_maturity\"><\/span>Both solutions in terms of maturity<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-221 alignleft\" src=\"https:\/\/bpluscom.net\/wp-content\/uploads\/2021\/10\/ww8-300x240.jpg\" alt=\"flutter vs swiftui\" width=\"300\" height=\"240\" \/>Considering <a href=\"https:\/\/prograils.com\/posts\/flutter-vs-swiftui-a-simple-comparison\">Flutter vs Swiftui<\/a>, it should be mentioned that Flutter is more mature than <strong>SwiftUI<\/strong>. This can be seen (in terms of building views) in allowing developers to use multiple ways to achieve the same goals. On the other hand,\u00a0SwiftUI currently has far fewer view-building solutions. That is sure to change in the future, but for now, if you want to build more complex applications, a better way is to use Flutter (or stick with Storyboards in Xcode &#8211; but that&#8217;s another story).\u00a0All in all, being a tool made for cross-platform development, <strong>Flutter<\/strong> will always have more ways to build complex views.<\/p>","protected":false},"excerpt":{"rendered":"<p>Flutter vs swiftui &#8211; transparency If you are curious about the differences between creating views in Flutter vs Swiftui, I recommend checking out the experiment in which the SwiftUI sample application was recreated in Flutter at WWDC 2019.\u00a0The results were very similar, but thanks to Flutter&#8217;s relative maturity, writing code is a bit faster.\u00a0On the [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[75,77,76],"class_list":["post-219","post","type-post","status-publish","format-standard","hentry","category-programming","tag-flutter","tag-programming","tag-swiftui"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":4,"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":888,"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/posts\/219\/revisions\/888"}],"wp:attachment":[{"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bpluscom.net\/en\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}