<?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 Atakan Arslan on Medium]]></title>
        <description><![CDATA[Stories by Atakan Arslan on Medium]]></description>
        <link>https://medium.com/@atakan-ars?source=rss-276d844860e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gXOKRqmjL7fjPKLC.</url>
            <title>Stories by Atakan Arslan on Medium</title>
            <link>https://medium.com/@atakan-ars?source=rss-276d844860e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 17:16:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atakan-ars/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[Building Maintainable iOS Apps with Clean Architecture]]></title>
            <link>https://atakan-ars.medium.com/building-maintainable-ios-apps-with-clean-architecture-40d38f18228d?source=rss-276d844860e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/40d38f18228d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Atakan Arslan]]></dc:creator>
            <pubDate>Thu, 27 Apr 2023 20:45:22 GMT</pubDate>
            <atom:updated>2023-04-27T21:17:33.860Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, I want to say something before you start reading I was curious about what <strong>artificial intelligence</strong> could do, and I asked <strong>ChatGPT</strong> if it can write an article about clean architecture. Then, I added some keywords.</p><p>As a result,</p><p>This article was written by <strong>ChatGPT</strong>. You can say “Hi!”, and good reading. :)</p><p>As a <strong>developer</strong>, you want to build apps that are <strong>easy to maintain</strong> and test over time. One way to achieve this is by using clean architecture, which separates the business logic of an application from the implementation details. In this article, we’ll explore how you can implement <strong>clean architecture</strong> in your <strong>iOS development</strong> project.</p><h4>Understand the Principles of Clean Architecture</h4><p>At its core, <strong>clean architecture </strong>is all about separating concerns and maintaining a clear separation of responsibilities. This makes it easier to test and maintain the codebase over time. To achieve this, you need to have a clear understanding of the underlying principles of clean architecture.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/37d55e56ee0f07f542f4f7424138ca55/href">https://medium.com/media/37d55e56ee0f07f542f4f7424138ca55/href</a></iframe><h4>Choose a Design Pattern</h4><p>One popular design pattern for implementing clean architecture in iOS development is the Model-View-ViewModel (MVVM) pattern. This pattern separates the business logic from the user interface, making it easier to test and maintain both components independently. Other popular design patterns include Model-View-Controller (MVC) and Model-View-Presenter (MVP). Choose the pattern that best suits your project’s needs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44086669128714022636aae8305ca190/href">https://medium.com/media/44086669128714022636aae8305ca190/href</a></iframe><p><strong>Separate Concerns with Layers</strong></p><p>Another key aspect of clean architecture is separating concerns into different layers. This helps ensure that each component of the application is responsible for a specific set of tasks. For example, you might have a data layer that’s responsible for handling data retrieval and storage, a domain layer that’s responsible for implementing business logic, and a presentation layer that’s responsible for displaying data to the user.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f2ef015b8964751e690b85f4bf3888b/href">https://medium.com/media/5f2ef015b8964751e690b85f4bf3888b/href</a></iframe><h4>Use Dependency Injection</h4><p>Dependency injection is a technique for managing dependencies between different components of an application. By injecting dependencies into a component’s constructor or method, you can ensure that the component is decoupled from its dependencies. This makes it easier to test and maintain the component over time.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7bf790262a48a32a19ac919d664dee4/href">https://medium.com/media/c7bf790262a48a32a19ac919d664dee4/href</a></iframe><h4>Write Unit Tests</h4><p>Finally, it’s important to write unit tests to ensure that your clean architecture implementation is working as expected. Unit tests can help you catch bugs and identify issues early on in the development process. They can also help you refactor your code with confidence, knowing that you won’t accidentally introduce new bugs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1ac778807d03df6cd7de75c1e0afc13/href">https://medium.com/media/e1ac778807d03df6cd7de75c1e0afc13/href</a></iframe><p>By following these steps, you can implement the clean architecture in your iOS development project and create a maintainable, testable codebase. Clean architecture is a powerful technique that can help you build better iOS apps.</p><p>In conclusion, if you want to build iOS apps that are easy to maintain and test over time, implementing clean architecture is a great place to start. By separating concerns with layers, using dependency injection, and writing unit tests, you can create a codebase that’s easy to understand and maintain. Good luck with your iOS development project!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40d38f18228d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS İçin Hızlı İşlemler (Quick Actions in iOS)]]></title>
            <link>https://medium.com/lcw-digital/ios-i%CC%87%C3%A7in-h%C4%B1zl%C4%B1-i%CC%87%C5%9Flemler-quick-actions-in-ios-34998acc7d68?source=rss-276d844860e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/34998acc7d68</guid>
            <category><![CDATA[hızlı-i̇şlemler]]></category>
            <category><![CDATA[shortcutitem]]></category>
            <category><![CDATA[quick-action]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Atakan Arslan]]></dc:creator>
            <pubDate>Sat, 28 Aug 2021 15:59:46 GMT</pubDate>
            <atom:updated>2021-09-01T17:07:20.751Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cELFHOneOkTPzy75axUcDA.png" /></figure><p>Herkese merhabalar 👋</p><p>Hızlı işlemler, uygulamamıza özel işlemleri direkt olarak anasayfa üzerinden uygulama simgesine basılı tutarak açılan bir menüyü ve bunun ile birlikte getireceği kolaylıkları sağlar. Örneğin: bir e-ticaret uygulamasında sepet, favoriler ve arama özelliklerinin (belirtilen özellikler stratejilere göre değişkenlik gösterebilir.) kolaylığı kullanıcılara epey kolaylık sağlamış olur. Bu yazımızda bu konu üzerinde durup, detaylarından bahsedeceğiz.</p><blockquote>Önemli: iOS 13 ve sonraki iOS sürümleri için uygulanabilir.</blockquote><p><strong>Quick Actions</strong>, statik veya dinamik olarak <strong>konfigüre</strong> edilebilir.</p><p><strong>Statik</strong>: <strong>info.plist</strong> içerisine statik olarak gerekli array oluşturulması ve itemların doldurulması ile gerçekleşir.(Örneğimizde AppDelegate içerisinde oluşturacağız.) Uygulama cihaza yüklendiği andan itibaren görünürlüğü geçerlidir.</p><p><strong>Dinamik</strong>: Belirlediğiniz bir kod bloğunda ekleyebilir veya çıkarabilirsiniz. Görünülürlüğü kodunuza bağlı olarak çalıştırıldığı andan itibaren geçerlidir.</p><p><strong>UIApplicationShortcutItem</strong> nesnemizi tanıyarak başlayalım.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/461273694714059be68a0124c0891287/href">https://medium.com/media/461273694714059be68a0124c0891287/href</a></iframe><ul><li><strong>type</strong>: String türünde zorunlu bir değişkendir. Benzersiz olmalıdır. Diğer itemlardan ayrışmasını sağlar.</li><li><strong>localizedTitle</strong>: String türünde zorunlu bir değişkendir. Hızlı işlemin görünecek başlığıdır. En fazla iki satır olarak görünür. Daha fazla bilgi için alt başlıkları kullanabilirsiniz. Localize edilebilir.</li><li><strong>localizedSubtitle</strong>: String türünde zorunlu olmayan bir değişkendir. Hızlı işlemin görünecek alt başlığıdır. Localize edilebilir.</li><li><strong>icon</strong>: Opsiyonel olarak kullanabileceğimiz işlemimizin ikonunu oluşturmak için kullanırız. Proje içerisinde bulunan asset dosyalarından seçebildiğimiz gibi standart olan ikonlardanda kullanabilir.</li><li><strong>userInfo</strong>: Hızlı işlem ile birlikte özel olarak bilgi taşımamızı sağlayan bir dictionarydir.</li></ul><h4>Statik olarak Hızlı İşlem(Quick Action) eklemek</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KGI5jfTmvDC_GVcsabfh3Q.png" /><figcaption>Property List Görünümü</figcaption></figure><p><strong>UIApplicationShortcutItems</strong> keyi altına bir dizi hızlı aksiyon ekliyoruz. Eğer kaynak kod tarafından eklemek istersek;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35835d6a6564559a47a9787f79972d44/href">https://medium.com/media/35835d6a6564559a47a9787f79972d44/href</a></iframe><p>biçiminde ekleyebiliriz.</p><h4>Dinamik olarak Hızlı İşlem(Quick Action) eklemek</h4><p>İlk olarak <strong>AppDelegate</strong> içerisinde <strong>didFinishLaunchingWithOptions</strong> methodunda shortcut item list oluşturmamız gerekiyor. Bu işlemi okunmasını ve kullanımını kolaylaştırmak amacıyla dönüş tipi <strong>[UIApplicationShortcutItem]</strong> olan bir fonksiyon aracılığı ile yapacağız.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aba1f9467595e21fe1d24d6b38dac4bf/href">https://medium.com/media/aba1f9467595e21fe1d24d6b38dac4bf/href</a></iframe><p>Aksiyon dönüşlerinde işlemlerimizi yaptırmak için handle etmemiz gerekiyor. Bu işlem için <strong>AppDelegate</strong> içerisinde farklı bir fonksiyonu kullanacağız.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5a79337dfee540f38bdcb214a2980db/href">https://medium.com/media/a5a79337dfee540f38bdcb214a2980db/href</a></iframe><p>Ve mutlu son :) Sonuç çıktımız aşağıdaki gibi olacaktır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*o8e_nAonjVb9yRCXg9vJjg.png" /></figure><p>LC Waikiki E-Ticaret Uygulaması üzerinde yukarıdaki geliştirmeleri belirli stratejilere göre ilk etapta şu şekilde kurguladık.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*d3hZPaSP08p-eT03fNx58A.png" /><figcaption>LC WAIKIKI E-Commerce App</figcaption></figure><p>Okuduğunuz için teşekkürler. Sonraki yazılarda görüşmek dileğiyle :)</p><blockquote>Referanslar:</blockquote><blockquote><a href="https://developer.apple.com/design/human-interface-guidelines/ios/system-capabilities/home-screen-actions/">https://developer.apple.com/design/human-interface-guidelines/ios/system-capabilities/home-screen-actions/</a></blockquote><blockquote><a href="https://www.hackingwithswift.com/example-code/uikit/how-to-add-a-uiapplicationshortcutitem-quick-action-for-3d-touch">https://www.hackingwithswift.com/example-code/uikit/how-to-add-a-uiapplicationshortcutitem-quick-action-for-3d-touch</a></blockquote><blockquote><a href="https://medium.com/ivymobility-developers/quick-actions-in-ios-8b8f182124e4">https://medium.com/ivymobility-developers/quick-actions-in-ios-8b8f182124e4</a></blockquote><blockquote><a href="https://www.youtube.com/watch?v=6Ap4wRMwsos">https://www.youtube.com/watch?v=6Ap4wRMwsos</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34998acc7d68" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lcw-digital/ios-i%CC%87%C3%A7in-h%C4%B1zl%C4%B1-i%CC%87%C5%9Flemler-quick-actions-in-ios-34998acc7d68">iOS İçin Hızlı İşlemler (Quick Actions in iOS)</a> was originally published in <a href="https://medium.com/lcw-digital">LCW Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kapadokya Serüveni | Swift MapKit Öğreticisi Ders: 1]]></title>
            <link>https://atakan-ars.medium.com/kapadokya-ser%C3%BCveni-swift-mapkit-%C3%B6%C4%9Freticisi-ders-1-83684d1b68fb?source=rss-276d844860e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/83684d1b68fb</guid>
            <category><![CDATA[mapview]]></category>
            <category><![CDATA[mkmapview]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[mapkit-ios]]></category>
            <dc:creator><![CDATA[Atakan Arslan]]></dc:creator>
            <pubDate>Sun, 28 Apr 2019 21:22:27 GMT</pubDate>
            <atom:updated>2019-04-28T21:22:27.544Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0U-CXX0FmPTY-46sexgUrw.png" /></figure><p>Merhaba Medium ! :)</p><p>/* İlk yazımda bana eşlik ettiğiniz ve serüvene katıldığınız için teşekkür ederim. Umarım güzel bir yolculuk olur sevgili okur. Bir insanı yaptığınız yolculuklarda daha iyi tanırmışsınız. O yüzden güzel bir yolculuk olması dileklerimle.. :) */</p><p>İlk olarak gideceğimiz yer ülkemiz için oldukça kıymetli alanlarından biri olan Kapadokya civarı olacak. Projemizi başlatarak ve gerekli küçük ayarları yaparak yolculuğa çıkabiliriz.(<strong>Storyboard</strong> üzerinden gideceğiz.)</p><p>Single View App olarak projemizi başlattıktan sonra Main.storyboard dosyamızı açalım ve hazır bulunan ViewController’ımıza bir <strong>MKMapView</strong> ekleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*i5A-VDbw6DnaAVT16VWXeA.png" /></figure><blockquote>Küçük bir ipucu: CMD + Shift + L klavye kısayolu ile arama ekranına kolayca ulaşabilirsin.</blockquote><p>Artık <strong>MapView</strong>’a sahibiz. Hoş bir görüntü için güvenli bölgemize(<strong>safe area</strong>) pinleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*HB4yjIJvqoEU0ml7GTfvwA.png" /></figure><p>Bu adımı da tamamladıktan sonra ViewController bağlantımıza geçelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*8Pjkr2Wf6Z2dBKxTDjGMzw.png" /></figure><p>Bağlantınızı yaptıktan sonra Xcode’un kızarması muhtemeldir. Gerekli kütüphaneyi ilgili ViewController’a ekledikten sonra sorun ortadan kalkacak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*hQBBb451Iz7v0zFcrtpJgg.png" /><figcaption>import MapKit</figcaption></figure><p>Haydi projemizin ilk haline bakalım !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*Fwx7pDGBU90emV5l0LQgpA.png" /></figure><blockquote>Başardın! Genel kullanımda ilk olarak senin koordinatlarını aldığını göreceksin. Şaşırtmak için simülatör ayarlarından farklı sahte koordinat girebileceğini unutma.</blockquote><p><strong>MapKit</strong> kütüphanesini başlangıç için belirli bir lokasyon kullanacağımızdan dolayı öncelikle koordinatlarımızı <strong>Google</strong> <strong>Maps</strong> aracılığı ile bulalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*WXf38BRsbAFI3-su37u3nw.png" /></figure><p>ViewController’ımıza gidip başlangıç koordinatımızın enlem ve boylam bilgilerini <strong><em>CLLocation</em></strong><em> tipinde bir değişkene atayalım.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7025fe3312a148016f898dd00b560bb4/href">https://medium.com/media/7025fe3312a148016f898dd00b560bb4/href</a></iframe><p><strong>MapView</strong> üzerinde merkez konum olarak belirleyeceğimiz noktayı belirmemiz gerekiyor evet ancak şöyle bir problemimiz var. Bu bölgeye ne kadar uzaktan bakacağız ? İşte bunu dinamik bir şekilde sağlamak için bir sabit değer ataması daha yapacağız.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68d829ca2a2561780cd6760d3876fdc0/href">https://medium.com/media/68d829ca2a2561780cd6760d3876fdc0/href</a></iframe><p>Sonradan karmaşıklacak olan yapımızı bir nebze temiz tutmak adına yeni bir fonksiyon oluşturalım ve başlangıç değerlerimizi set edelim.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2cdb0f84e19fad2b8d341111f2d9ac08/href">https://medium.com/media/2cdb0f84e19fad2b8d341111f2d9ac08/href</a></iframe><p><strong>MapKit</strong> kütüphanesi içerisinde bulunan fonksiyonlardan faydalanarak <strong>MapView</strong> ’ımızı düzenledik. Bunu yaparken Neler yaptık ?</p><p>Fonksiyonumuz içerisinde <strong>mapView</strong> için bir koordinat merkezi sabiti tanımlarken önceden oluşturduğumuz lokasyon bilgisini ve ölçeklendirmeyi kullandık.</p><p>Sonrasında <strong>MapView</strong> otomatik olarak kendini düzenlemesi için <strong><em>setRegion(_:animated:)</em></strong><em> </em>metodunu kullanarak değerimizi atadık.</p><p>Şimdi <strong><em>viewDidLoad() </em></strong>içerisinde fonksiyonumuzu çağırma vakti..</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31932ddb4c0a80f92b437b327daa3f29/href">https://medium.com/media/31932ddb4c0a80f92b437b327daa3f29/href</a></iframe><p>Veeee Başardık 🎉 🎉 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*h3uxnc0eeCTD68Ehiw7SZA.png" /><figcaption>Artık nereye gideceğimizi görüyoruz !</figcaption></figure><blockquote>O zaman şimdi bir pin ekleyip yol tarifi alalım :)</blockquote><h3>-Pin Eklemek ve MapView Üzerinde Göstermek</h3><p>Sonradan farklı şekillerde kullanacağımızdan dolayı şimdiden dinamik olarak ilerlemekte fayda var. Yeni bir sınıf ekleyelim. Bunun için yapmanız gereken şey ise proje dosyanızda <em>.</em><strong><em>swift</em></strong> uzantılı yeni bir dosya açmak olacak.</p><p>Ben <strong><em>Pin</em></strong><em>.</em><strong><em>swift</em></strong> olarak oluşturacağım. İsimlendirme hayal gücüne bağlı :)</p><p>Burada başlık, lokasyon adı ve koordinat tiplerimizi tanımlıyoruz. Artık elimizde sürekli kolayca üretebileceğimiz bir pin kalıbımız var.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56d5e2429ceb72e9a456c6ef717c084c/href">https://medium.com/media/56d5e2429ceb72e9a456c6ef717c084c/href</a></iframe><p>Sıra geldi kalıbımızdan nesne türetme ve <strong>MapView</strong> üzerinde gösterimini sağlamaya. Yapacağımız işlem oldukça basit.</p><p><strong><em>viewDidLoad() </em></strong>içerisine gidip Pin tipinde değişkenimizi oluşturup değerlerini giriyoruz. Sonra <strong>MKMapView </strong>class’ının diğer bir metodu olan <strong><em>addAnnotation</em></strong><em> ile mapView komponentimize pinimizi ekleyip projemizi koşturuyoruz.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/90aa0ae2084f5fcfb708555672d9f315/href">https://medium.com/media/90aa0ae2084f5fcfb708555672d9f315/href</a></iframe><p>İşte Başardık 🎉 🎉 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*_y0OMcSkNT5Ebc_rWKd__A.png" /></figure><p>Zamanın için teşekkür ederim. Umarım faydalı bir yazı olmuştur. <strong>MapKit</strong> ve <strong>MapView</strong> üzerine planladığım diğer yazılarda görüşmek üzere.</p><blockquote>Kaynak:</blockquote><blockquote><a href="https://developer.apple.com/documentation/mapkit/">https://developer.apple.com/documentation/mapkit/</a></blockquote><blockquote><a href="https://www.raywenderlich.com/548-mapkit-tutorial-getting-started">https://www.raywenderlich.com/548-mapkit-tutorial-getting-started</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83684d1b68fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>