<?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 Ezgi Ozkan on Medium]]></title>
        <description><![CDATA[Stories by Ezgi Ozkan on Medium]]></description>
        <link>https://medium.com/@ezgiozkan?source=rss-757175420819------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GV9J8HtwY3U396jIamz-OA@2x.jpeg</url>
            <title>Stories by Ezgi Ozkan on Medium</title>
            <link>https://medium.com/@ezgiozkan?source=rss-757175420819------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 09:59:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ezgiozkan/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[SwiftUI MapKit Kullanımı]]></title>
            <link>https://ezgiozkan.medium.com/swiftui-mapkit-kullan%C4%B1m%C4%B1-c32593772d97?source=rss-757175420819------2</link>
            <guid isPermaLink="false">https://medium.com/p/c32593772d97</guid>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swift-programming]]></category>
            <dc:creator><![CDATA[Ezgi Ozkan]]></dc:creator>
            <pubDate>Tue, 15 Dec 2020 21:57:59 GMT</pubDate>
            <atom:updated>2022-02-16T18:56:47.263Z</atom:updated>
            <content:encoded><![CDATA[<h3>SwiftUi MapKit</h3><p>Hello, in this article, I will make a small example about the Mapkit library, which allows us to add the map feature, which is very commonly used when developing applications. Before moving on to this example, I recommend that you read my <a href="https://ezgiozkan.medium.com/swiftui-state-nedir-979061f86fee">article</a> where I explain the use of @State, if you haven’t, so that you can better understand what I’ve done.</p><p>First of all, we need to add the Mapkit library to our application so that we can access the map features. With SwiftUI, a new Map object has arrived. In this example, I will use the MkCoordinateRegion type, which takes latitude, longitude and distance values. As you can see we are asked to create a Binding.</p><p>In this example, I will use the MkCoordinateRegion type, which takes latitude, longitude and distance values. As you can see we are asked to create a Binding.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d542f077f298350e35b989e332b1814/href">https://medium.com/media/7d542f077f298350e35b989e332b1814/href</a></iframe><p>Since the operations we will do are only on this screen, I create the <a href="http://twitter.com/State">@State</a> variable. We can create it as blank, but I chose to choose a region and enter latitude, longitude and distance information.<br>The CLLocationCoordinate type is the part where we enter the latitude and longitude values of the region we select, and the other is the MKCoordinateSpan, where we decide at what distance the region will be seen when the map is opened (the smaller the values we enter in the latiduteDelta and longitudeDelta sections, the closer our region will appear when the map is first opened)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d51ec5941043605832de943e056e0d09/href">https://medium.com/media/d51ec5941043605832de943e056e0d09/href</a></iframe><p>I entered the latitude and longitude of Ankara, as I wanted it to appear closer, so I entered the value 2.0.</p><p>Let’s improve our app a little bit more. For example, let’s offer users different city options instead of Ankara. Let the user choose the city they want to go to from the picker we created and the coordinates of that city will be displayed on the map. So let’s start.</p><p>First of all, we created an Array of MKCoordinateRegion type in which we will keep the latitude and longitude information of all our cities. Each city has an index value.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a374407711cb38862c494e64383b1485/href">https://medium.com/media/a374407711cb38862c494e64383b1485/href</a></iframe><p>In order to reach the cities, instead of specifying the coordinates in the region variable we created above, we determined our starting city as Ankara, which is in the 0th index. Then we created a Picker, as you can see the picker asks us to create a Binding. Since the location will change according to the index number selected by the user, we created a cityIndex variable with the @State object.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c32593772d97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftUI @State nedir?]]></title>
            <link>https://ezgiozkan.medium.com/swiftui-state-nedir-979061f86fee?source=rss-757175420819------2</link>
            <guid isPermaLink="false">https://medium.com/p/979061f86fee</guid>
            <category><![CDATA[state]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Ezgi Ozkan]]></dc:creator>
            <pubDate>Sat, 12 Dec 2020 12:58:30 GMT</pubDate>
            <atom:updated>2022-02-16T19:27:20.938Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is SwiftUI <a href="http://twitter.com/State">@State</a>?</h3><p>Hello everyone, as you know, at the WWDC 2019 conference, Apple introduced a new user development interface called SwiftUI for developers. I decided to start a SwiftUI series. In this article, I will explain the use of @State</p><p>@State is used to allow us to change values in a struct. Normally this is not allowed because the Struct structure is of value type. When we change the value of the variable, the old View is destroyed and a new View is created. If we want to make changes to other Views we have created, we will need to use @ObservedObject and @EnvironmentObject tokens. I will talk about how to use these tokens in detail in my next articles. If you do not understand anything from what you have read so far, there is no need to worry. Since the concepts are very new, they can be a bit confusing, but it becomes easily understandable with examples. Now let’s do a small example.</p><p>First, let’s create a bool variable isOn using the @State specifier. The purpose of this little application is to turn the Button On or Off and show it to the user. Normally, as you know, we cannot interfere with variables, but the @State object we bring in front of the variable will provide exactly this function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/95da372c4f95b7cb78177273b04d1083/href">https://medium.com/media/95da372c4f95b7cb78177273b04d1083/href</a></iframe><p>Our bool type variable changed as soon as we pressed the button, because our isOn variable is in the true state, “On” appears on the screen. Thanks to the @State object when we pressed the button, the View changes and “Off” appears on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_5e2uQqnfJR0D2u7motYiQ.gif" /></figure><p>Let’s do another small example and understand the concept of @State. In this example, we will create a button again, and each time we click the button, the number displayed on the screen will increase. For this, we create a variable called “Count” and set the value 0. Then we add the @State object to the beginning of this variable, which will change the view of the View.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b7e591753ce2f493ac7d5272aec4fd2e/href">https://medium.com/media/b7e591753ce2f493ac7d5272aec4fd2e/href</a></iframe><p>Now let’s run our application and press the button;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*vzjsxpHbncNo8lnMSX_qTA.gif" /></figure><p>Stay tuned for more.</p><p>LinkedIn: www.linkedin.com/in/ezgi-özkan-409b70131</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=979061f86fee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>