<?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 Ahmet Bilal Candemir on Medium]]></title>
        <description><![CDATA[Stories by Ahmet Bilal Candemir on Medium]]></description>
        <link>https://medium.com/@ahmetbilalcandemir?source=rss-c2f7b0223cf3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vG-7qMiLNf1wadY0ZEV_3A.jpeg</url>
            <title>Stories by Ahmet Bilal Candemir on Medium</title>
            <link>https://medium.com/@ahmetbilalcandemir?source=rss-c2f7b0223cf3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:19:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmetbilalcandemir/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[Print Your Own Newspaper Every Morning]]></title>
            <link>https://medium.com/@ahmetbilalcandemir/print-your-own-newspaper-every-morning-503836a14c38?source=rss-c2f7b0223cf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/503836a14c38</guid>
            <category><![CDATA[bulletin]]></category>
            <category><![CDATA[morning-routines]]></category>
            <category><![CDATA[newspapers]]></category>
            <category><![CDATA[routine]]></category>
            <category><![CDATA[work]]></category>
            <dc:creator><![CDATA[Ahmet Bilal Candemir]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 14:32:05 GMT</pubDate>
            <atom:updated>2026-11-16T14:42:49.268Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I saw someone doing this on social media and thought — maybe this could work for me too. I built my own version. Sharing it in case it’s useful to someone else.</em></p><p>Ahmet Bilal Candemir · November 2026 · 6 min read</p><p>A while back I came across a post about morning routines — someone who, before reaching for their phone, had their whole day laid out on a single sheet of paper. Tasks, news, schedule. All in one place. I thought “I wonder if that would actually work for me” and spent a weekend building my own version.</p><p>The result is The Bilal’s Times. A personal newspaper that prints itself at 07:00 every morning, A4 format, with a little New York Times energy. I’ve been using it for a few weeks now. It works for me. I’m sharing it here in case it works for you too.</p><h3>What’s In It?</h3><p>Three columns. Left: today’s task list, plus any Jira issues due within the next day — those show up automatically. Middle: a weekly habit tracker, things like walking, reading, meditation. Right: the day’s schedule and sport activity. The bottom half: world news and technology headlines pulled from the Guardian API.</p><p>The masthead uses UnifrakturMaguntia, the only Google Font that gives you that NYT blackletter feel for free. Optimized for black-and-white laser printing — photos are skipped since they eat through toner.</p><p><em>“Before I reach for my phone, there’s a single sheet of paper on my desk. It tells me what to do. That’s it.”</em></p><h3>How I Built It</h3><p>Python script, which I’d used before but never for something this practical. Jinja2 for the HTML template, Playwright for PDF generation. I started with WeasyPrint and xhtml2pdf but both were unreliable on Apple Silicon Mac. Playwright just works — it downloads its own Chromium, CSS grid and Google Fonts run perfectly.</p><p>For news I went with the Guardian API because there’s a free developer tier and the content quality is solid. Pulling from world news, technology, and politics sections.</p><h3>What I Used</h3><p>Python 3.9+ · Playwright · Jinja2 · PyYAML · requests · Guardian API · OpenWeatherMap API · Jira REST API</p><h3>Setting It Up</h3><p>I put the code on GitHub. Getting it running with your own name takes about 15–20 minutes.</p><ol><li>Clone the repo:<br>git clone <a href="https://github.com/bilalcandemir/DailyBulletin">https://github.com/bilalcandemir/DailyBulletin</a></li><li>Install dependencies:<br>pip3 install pyyaml jinja2 requests playwright<br>python3 -m playwright install chromium</li><li>Openconfig.yamland fill in your city, API keys, and habit list.</li><li>Get a Guardian API key (free):open-platform.theguardian.com/access/support-sandbox</li><li>Get an OpenWeatherMap key (free):openweathermap.org/api</li><li>Intemplates/bulletin.html, swap<em>&quot;The Bilal&#39;s Times&quot;</em>for your own name.</li><li>Add today’s tasks totasks.yaml.</li><li>Test it:python3 generate.py</li><li>Automate it with a cron job at 07:00:0 7 * * * cd ~/bulletin &amp;&amp; python3 generate.py</li></ol><h3>Taking Notes During the Day</h3><p>Add this to your ~/.zshrc and reload the terminal:</p><pre>note() { echo &quot;$1&quot; &gt;&gt; ~/bulletin/notes.txt &amp;&amp; echo &quot;✓ Note added: $1&quot;; }</pre><p>Then from anywhere:</p><pre>note &quot;Prepare the sprint demo slides&quot;</pre><p>Next morning those show up in the bulletin as tasks under “Yesterday’s Notes.”</p><h3>Connecting Jira</h3><p>Get a personal access token from your Atlassian account, save it to ~/.bulletin_jira_token, fill in cloud_id and email in config.yaml. Issues due within a day will start appearing in the left column automatically.</p><p>· · ·</p><p>⚠ Learn From Me</p><p>While testing, I had printer.enabled: true set. I was planning to buy a home printer but hadn&#39;t yet. printer_name was empty, so macOS sent it to the default printer.</p><p>Default printer: the office network printer.</p><p>I’d run the script a few times — and “a few” here means maybe 50 to 60 — so colleagues who left before me were calling in the morning: <em>“Hey, there are bulletins coming out of the printer. We handed them out to everyone.”</em></p><p>So now, if printer_name is empty, the script prints nowhere. When your home printer arrives, run lpstat -p to get its name, add it to config. Please don&#39;t test this at the office.</p><h3>One Last Thing</h3><p>I’ve been getting the bulletin every morning for a few weeks. I don’t know yet if it’s enough to build the habit — but having something on the desk in the morning feels nice. A small analog moment inside a digital day.</p><p>If you build your own version I’d genuinely like to see it. The repo is open to contributions — different templates, different integrations, whatever you add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzdZyPye-4pRvPuS_ZPvmA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=503836a14c38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Her Sabah Kendi Gazetenizi Basın]]></title>
            <link>https://medium.com/@ahmetbilalcandemir/her-sabah-kendi-gazetenizi-bas%C4%B1n-6435a644ac3f?source=rss-c2f7b0223cf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6435a644ac3f</guid>
            <category><![CDATA[daily-life]]></category>
            <category><![CDATA[newspapers]]></category>
            <category><![CDATA[bulletin]]></category>
            <category><![CDATA[morning-routines]]></category>
            <category><![CDATA[work]]></category>
            <dc:creator><![CDATA[Ahmet Bilal Candemir]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 14:30:53 GMT</pubDate>
            <atom:updated>2026-11-16T14:43:32.682Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Sosyal medyada gördüğüm bir içerikten ilham aldım, kendim yapmaya karar verdim. Belki başkasının da işine yarar diye paylaşıyorum.</em></p><p>Ahmet Bilal Candemir · Kasım 2026 · 6 dk okuma</p><p>Bir süre önce sosyal medyada birisinin sabah rutinini anlattığı bir içerik gördüm. Sabah kalktığında telefona bakmadan önce o günkü programını, yapacaklarını ve haberleri tek bir kağıtta görmek. Kulağa güzel geldi. “Acaba bende işe yarar mı?” diye düşündüm ve kendi versiyonumu yapmaya karar verdim.</p><p>Haftasonunu bununla geçirdim. Ortaya çıkan şey: The Bilal’s Times. Her sabah saat 07:00&#39;da otomatik olarak üretilen, A4&#39;e basan, New York Times’tan ilham alan kişisel bir gazete.</p><h3>Ne Var İçinde?</h3><p>Üç sütun. Sol tarafta o günkü yapılacaklar listesi — Jira’dan due date’i yaklaşan issue’lar da otomatik olarak buraya düşüyor. Orta sütunda haftalık alışkanlık takip tablosu, yürüyüş, okuma gibi. Sağda o güne özel program ve spor aktivitesi. Sayfanın alt yarısında Guardian API’dan çekilen dünya haberleri ve teknoloji başlıkları.</p><p>Başlık fontu olarak UnifrakturMaguntia kullandım — NYT’nin o ikonik blackletter stilini ücretsiz veren tek Google Font bu. Siyah-beyaz lazer yazıcıya göre optimize ettim, fotoğrafları kullanmayı tercih etmedim böylece tonerden tasarruf ettim.</p><p><em>“Sabah telefona uzanmadan önce önümde tek bir kağıt var. O kağıtta ne yapacağım yazıyor. Bu kadar.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzdZyPye-4pRvPuS_ZPvmA.png" /></figure><h3>Nasıl Yaptım?</h3><p>Python yazdım, daha önce de yazmıştım ama bu kadar pratik bir şey için kullandığım pek olmamıştı. HTML şablon için Jinja2, PDF üretimi için Playwright kullandım. Playwright’ı seçmemin nedeni basit: kendi Chromium’unu indiriyor, CSS grid ve Google Fonts sorunsuz çalışıyor. WeasyPrint veya xhtml2pdf ile başlamıştım ama Apple Silicon Mac’te her ikisi de tutarsız davrandı, bıraktım.</p><p>Haber için Guardian API’ı tercih ettim çünkü ücretsiz geliştirici erişimi var ve İngilizce kaliteli içerik sunuyor. Dünya haberleri, teknoloji ve politika bölümlerinden çekiyor.</p><h3>Kullandıklarım</h3><p>Python 3.9+ · Playwright · Jinja2 · PyYAML · requests · Guardian API · OpenWeatherMap API · Jira REST API</p><h3>Siz de Kurmak İsterseniz</h3><p>Kodu GitHub’a koydum, kendi adınızla çalışacak şekilde ayarlamak 15–20 dakika sürüyor. Adım adım şöyle:</p><ol><li>Repoyu indirin:<br>git clone <a href="https://github.com/bilalcandemir/DailyBulletin">https://github.com/bilalcandemir/DailyBulletin</a></li><li>Gerekli paketleri yükleyin:<br>pip3 install pyyaml jinja2 requests playwright<br>python3 -m playwright install chromium</li><li>config.yamldosyasını açın, şehrinizi, alışkanlık listenizi ve API key&#39;lerinizi girin.</li><li>Guardian API key (ücretsiz):open-platform.theguardian.com/access/support-sandbox</li><li>OpenWeatherMap key (ücretsiz):openweathermap.org/api</li><li>templates/bulletin.htmliçindeki<em>&quot;The Bilal&#39;s Times&quot;</em>kısmını kendi adınızla değiştirin.</li><li>tasks.yamldosyasına o günkü görevlerinizi yazın.</li><li>Deneyin:python3 generate.py</li><li>Otomatik çalıştırmak için cron job ekleyin:0 7 * * * cd ~/bulletin &amp;&amp; python3 generate.py</li></ol><h3>Gün İçi Not Alma</h3><p>Gün içinde aklıma gelen bir şeyi terminalden not alıyorum, ertesi sabah bültende görev olarak çıkıyor. ~/.zshrc&#39;ye şu satırı ekleyip terminali yeniden başlatmak yeterli:</p><pre>note() { echo &quot;$1&quot; &gt;&gt; ~/bulletin/notes.txt &amp;&amp; echo &quot;✓ Not eklendi: $1&quot;; }</pre><p>Sonra her yerden:</p><pre>note &quot;Sprint demo slaytlarını hazırla&quot;</pre><h3>Jira’yı Bağlamak</h3><p>Atlassian hesabınızdan personal access token alın, ~/.bulletin_jira_token dosyasına kaydedin. config.yaml&#39;daki cloud_id ve email alanlarını doldurun. Due date&#39;i 1 gün kalan issue&#39;lar sol sütuna otomatik düşmeye başlar.</p><p>· · ·</p><p>⚠ Benden Öğrenin</p><p>Projeyi test ederken printer.enabled: true yapmıştım. Ev yazıcısı almayı planlıyordum ama henüz almamıştım. printer_name boştu, macOS varsayılan yazıcıya gönderdi.</p><p>Varsayılan yazıcı: ofisin ağ yazıcısı.</p><p>Script’i birkaç kez test ettiğim için — ki “birkaç” burada “belki 50–60 kez” demek ofiste bu bana biraz problem oldu :D.</p><p>Ev yazıcınızı aldıktan sonra lpstat -p ile adını öğrenin ve config&#39;e girin. Ofiste test etmeyin.</p><h3>Son Olarak</h3><p>Rutini oturtmak için yeterli mi bilmiyorum ama sabah masanın üzerinde bir şey görmek hoş geliyor. Dijital hayatın içinde küçük bir analog his gibi.</p><p>Kendi versiyonunuzu yaparsanız görmek isterim. Farklı şablonlar, farklı entegrasyonlar — katkıya açık.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6435a644ac3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS Development: Keyboard Event with Swift]]></title>
            <link>https://medium.com/@ahmetbilalcandemir/ios-development-keyboard-event-with-swift-a65b000e6df9?source=rss-c2f7b0223cf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a65b000e6df9</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Ahmet Bilal Candemir]]></dc:creator>
            <pubDate>Wed, 21 Dec 2022 12:25:36 GMT</pubDate>
            <atom:updated>2022-12-21T12:25:36.779Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mhZi8orf0chOpXN6ZVL8w.jpeg" /></figure><p>Hello from another Swift content. In this article we will talk about how to control the Keyboard Event and how to carry the components with keyboard in Swift.</p><p>First of all we can create a new project and into a text field and button. After that you can give them constraints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*tN7-Z7j1czW0Wnwv1J2grA.png" /><figcaption>Storyboard</figcaption></figure><ul><li>In this case, the most important thing is the Text Field’s bottom constraint. We will describe the constraint into the View Controller.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5dh1zhBHbu4Yqr93eofZQ.png" /></figure><p>After this process our job is done with Storyboard. So, we can close that and also open the View Controller page.</p><ul><li>We should create an observer to follow the keyboard event. We can define shortly the Observer. Observer is like broadcast station. You can create a broadcast in your controller or class and you can listen from another class. We will use the construction which offered by Apple.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa507f320bb5236525ed49a1bce14758/href">https://medium.com/media/aa507f320bb5236525ed49a1bce14758/href</a></iframe><ul><li>After this observer we can now listen the Keyboard Event. So, now we will write our function which will work every keyboard event (open-close).</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3871359cf05bc085ff6d4537a011b6b2/href">https://medium.com/media/3871359cf05bc085ff6d4537a011b6b2/href</a></iframe><p>If we explain the Keyboard Notification function:</p><ul><li>userInfo is an expression for reach other notification properties. We describe this one time, because we will use again for take the keyboard animations and frame values.</li><li>After that we can take keyboard’s finish point frame and convert to cgRectValue using notification.</li><li>We got the finish point but we will use the keyboard’s -y axis point for understand the keyboard is open or not. We can create another variable to hold the Keyboard’s -y axis.</li><li>After the Keyboard’s frame operations we have one important thing. As you know the Animations has some settings and duration options. If we use the same property values with Keyboard’s, we will not get any ugly movements during the animations.</li><li>We got the Animation values, we should control the Safe Area insets, because when you move the component you can see a little bit space between Keyboard and Text Field in iPhones which uses notch.</li><li>Okay then, we can talk about If-else statement which we control the keyboard status. In this statement as you can see we used the keyboard’s end -y axis. When keyboard is closed actually it goes to under the screen, so endFrameY is bigger than screen height when it’s closed. So, we can understand with this way is keyboard opened? or not?</li><li>When keyboard closing we want to change our components position. And we want to set default like start position. We can put the same constraint value with storyboard.</li><li>And else statement, application will open the keyboard. And we want to move our components in the -y axis. For this situation we will change the Text Field Bottom Constraint. We should move these components higher than before. If we take keyboard’s height and minus the safe area bottom padding we can move the components to correct place.</li><li>I want to pay attention to one point. If you want to use animations changing the constraint values. You should change these values before the animation. And if you put the view.layoutIfNeeded() function in animation section. Application will make this process with animation.</li><li>After this function we are almost done. We can make our keyboard close button.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab01f47c318d834d423836fbaaa49df1/href">https://medium.com/media/ab01f47c318d834d423836fbaaa49df1/href</a></iframe><ul><li>In this function we just made close the editing inside of view. If you want, you can just press the <strong>CMD+K </strong>for open or close the keyboard in your mac.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*09nsxRpq3__k_msNLfxGgg.gif" /><figcaption>You can see the result</figcaption></figure><p>We have come to the end of another article. With this process we have done, I have briefly summarized a short but life-saving structure for you. Hopefully it was useful. See you in the next articles. Bye for now 😊👋🏻</p><p><strong>GitHub link of the project:</strong></p><p><a href="https://github.com/bilalcandemir/KeyboardEventSwift.git">GitHub - bilalcandemir/KeyboardEventSwift</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a65b000e6df9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS Geliştirme: Swift ile Keyboard Event]]></title>
            <link>https://medium.com/@ahmetbilalcandemir/ios-geli%C5%9Ftirme-swift-ile-keyboard-event-b0c740bd5bb3?source=rss-c2f7b0223cf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0c740bd5bb3</guid>
            <category><![CDATA[objective-c]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Ahmet Bilal Candemir]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 11:07:23 GMT</pubDate>
            <atom:updated>2022-12-21T06:58:12.946Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-w_ZgOqZiFsbY1cx27Ikg.jpeg" /></figure><p>Yeni bir yazıdan tekrar herkese merhabalar. Bu yazımda swift ile <strong>Keyboard Event</strong>’i nasıl kontrol edebileceğimizi ve bununla birlikte Text Field benzeri komponentlerin klavyenin altında kalmaması ve klavye ile birlikte yukarı itilmesi hakkında konuşacağız.</p><ul><li>İlk adım olarak bir proje oluşturup Storyboard’a bir Text Field ve bir buton ekliyoruz.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*73GiJ6cHksEm9EwOHcE0eg.png" /><figcaption>Storyboard</figcaption></figure><ul><li>Burada yapmamız gereken en önemli nokta Text Field <strong>Bottom Constraint’i</strong> View Controller içerisine tanımlıyoruz.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5dh1zhBHbu4Yqr93eofZQ.png" /></figure><p>Storyboard ile herhangi bir işimiz kalmadığına göre kapatıp View Controller’a geçebiliriz.</p><ul><li>Uygulanın klavye eventini takip edebilmemiz için bir observer tanımlamamız gerekiyor. <strong>Observer</strong> kısaca radyo yayını yapan ve bu yayını dinleyebildiğimiz bir yapı oluşturmamızı sağlıyor. Burada biz <strong>Swift</strong> in bizlere sunduğu hazır bir yapıyı kullanacağız.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa507f320bb5236525ed49a1bce14758/href">https://medium.com/media/aa507f320bb5236525ed49a1bce14758/href</a></iframe><ul><li>Klavyenin açılıp kapanma eventini bu observer sayesinde dinleyeceğiz. Klavye her açıldığında veya kapandığında çalışması gereken fonksiyonumuzu yazma kısmına geldik.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3871359cf05bc085ff6d4537a011b6b2/href">https://medium.com/media/3871359cf05bc085ff6d4537a011b6b2/href</a></iframe><p>Keyboard Notification fonksiyonunu açıklayacak olursak:</p><ul><li><strong>userInfo,</strong> tanımladığımız observer’ın içersinde diğer ek notification’lara ulaşabilmemiz için tanımlamamız gereken bir ifadedir. Bu fonksiyon içerisinde klavyenin frame ve animasyon ayarlarına yine userInfo ile ulaşacağımızdan dolayı bir defa tanımlıyoruz.</li><li>Daha sonra klavyenin üst noktasının frame inin cgRectValue ya çevirip endFrame adlı değişkene atıyoruz.</li><li>Klavyenin bitiş frame’ini aldık ancak tam olarak y eksenindeki değerine ulaşabilmek için endFrameY adlı bir değişken oluşturup içerisine origin.y değerini atıyoruz. Bu değeri alma sebebimiz klavyenin açık olup olmadığını ekranın uzunluğu ile kıyaslayarak açık mı yoksa kapalı mı olduğunu isOpen tarzı bir değişken kullanmadan yapabilmek.</li><li>Klavye frame’leri ile alakalı bölümü bitirdikten sonra önemli olan bir diğer bölüm ise, Komponentlerin -y eksenindeki değerlerini değiştirirken animasyon kullanacağız. Bildiğiniz üzere bu animasyonun bazı Duration, Animation Curve gibi özellikleri var. Bu özelliklerin değerlerini klavye animasyonu ile aynı alırsak klavyenin açılışında herhangi çirkin bir görüntü oluşmayacaktır.</li><li>Animation Değerlerini aldıktan sonra, komponentleri animasyon ile yukarı ittiğimizde çentik olan ekranlarda safeArea bottom inset kadar boşluk olduğunu fark edeceksiniz. Bunun için safeArea kullanan cihazlar için bottomPadding adında bir değişken oluşturup bottom inset değerini alıyoruz.</li><li>Şimdi ise klavyenin açık veya kapalı olması durumunu kontrol edeceğimiz if else bloğundan konuşacağız. Burada şöyle bir yapı bulunmakta, klavye kapalı olduğu durumda -y eksenin ekranın altında bulunduğu için aslında <strong>keyboardYAxis ≥ screenHeight</strong> gibi bir durum oluşmuş oluyor yani if bloğuna girdiğinde aslında klavyenin kapalı olduğu durumu düşünüp burada klavye kapalı olduğunda uygulamanın ne yapmasını istediğimizi yazıyoruz.</li><li>Klavye kapalı olduğunda istediğimiz şey uygulama ilk açıldığında Text Field komponentinin ilk durduğu yerde durması. O zaman Storyboard üzerinden verdiğimiz Constraint değerini buraya yazabiliriz.</li><li>Else bloğunda ise klavye açılacağı zaman Text Field’ı y ekseninde yukarı doğru taşıyacağız. Bunun için Text Field Bottom Constraint’i endFrame’in heightından ve eğer safeArea inset varsa bu değerden çıkartıp -y ekseninde yukarı taşımış oluyoruz.</li><li>Önemli bir nokta olarak belirtmek isterim, Constraint kullanarak animasyon yaptırmak istiyorsanız, burada yapmanız gereken şey animate fonksiyonun içinde bu işlemleri yapmak yerine önce constraint değiştirme işlemini yapıp animate fonksiyonunda sadece view.layoutIfNeeded() ifadesini yazmak olacaktır.</li><li>Bu fonksiyonu bitirdiğimize göre aslında uygulamanın klavye açılma ve kapanma anlarında ki davranışlarını burada yapmış olduk.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab01f47c318d834d423836fbaaa49df1/href">https://medium.com/media/ab01f47c318d834d423836fbaaa49df1/href</a></iframe><ul><li>Son adım olarak klavye kapanma işlemi için isterseniz klavyeniz üzerinden <strong>CMD+K</strong> yaparak klavyeyi kolayca açıp kapatabilirsiniz.Ben yinede bir buton tanımladım bu butonun içinde aslında klavyemizi endEditing işlemi ile kapatmış oluyoruz.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*09nsxRpq3__k_msNLfxGgg.gif" /><figcaption>Son hali bu şekilde gözüküyor</figcaption></figure><p>Bir yazının daha sonuna gelmiş bulunuyoruz. Yaptığımız bu işlemle kısa ancak hayat kurtaran bir yapıyı sizlere kısaca özetlemiş oldum. Umarım faydalı olmuştur. Yeni yazılarda görüşmek dileğiyle hoşçakalın. 😊👋🏻</p><h4>İsteyen arkadaşlar için projenin GitHub linki :</h4><p><a href="https://github.com/bilalcandemir/KeyboardEventSwift">GitHub - bilalcandemir/KeyboardEventSwift</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0c740bd5bb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS Development: Create Custom Table View Cell]]></title>
            <link>https://medium.com/@ahmetbilalcandemir/ios-development-create-custom-table-view-cell-994d7e2b47ca?source=rss-c2f7b0223cf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/994d7e2b47ca</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[table-view-cell]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Ahmet Bilal Candemir]]></dc:creator>
            <pubDate>Mon, 19 Sep 2022 09:00:47 GMT</pubDate>
            <atom:updated>2022-09-19T09:27:15.725Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w_cSEe4sc6ezQSmQhpgGtQ.jpeg" /></figure><h4>Hello everyone. I am writing the first article of my blog page ,where I try to share informative content and tutorials about IOS Development. This post will be about how we can create a Custom Table View Cell and also show it in the Table View using Swift language on the Xcode platform. I hope this post can help anybody who needs to learn this topic.</h4><p>Before we start, I should say why we need to learn to use <strong>Custom Table View Cells</strong> in our <strong>IOS Applications</strong>.</p><p>If you have started to learn about IOS development on Youtube or Udemy, you can see in general, educators show create <strong>Table View</strong> cell in <strong>Storyboard</strong> using <strong>Prototype Cells</strong>. But unfortunately, most companies and developers don’t use this method. I hope you will be able to use custom table view cells when you read this post.</p><ul><li>First of all, we should create a new Xcode project. After that, we will open the <strong>Storyboard</strong> page and add a new table view on the view control and give them constraints.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*v0huWJZVuetmXXiWYyNPUA.png" /></figure><ul><li>Then open the view controller’s code block next to the <strong>Storyboard</strong>. Choose the view controller on storyboard and hold the <strong>cntrl</strong> button with your mouse’s left click and drag to the <strong>View Controller’s</strong> code block and give it a name.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*h3o6JCCWhh0jlnjjHEp8Mw.png" /></figure><ul><li>Now our view controller knows <strong>Table View</strong> that we have created on storyboard. After that process we should create a new table view cell. Press <strong>Command + N </strong>buttons together or follow <strong>File -&gt; New -&gt; File</strong> steps. Select the <strong>Cocoa Touch</strong> class and select <strong>UITableViewCell</strong> from the <strong>Subclass of:</strong> section. We should also select the also <strong>Create Xib File</strong> option for make custom designs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wodGY1Yxz46zjgEiS9ZoLQ.png" /></figure><ul><li>We should add an identifier on CustomTableViewCell.swift file for describe this cell to view controller. I will explain this situation in the next steps.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eaf0404208935b67fae9a1fafae3aac6/href">https://medium.com/media/eaf0404208935b67fae9a1fafae3aac6/href</a></iframe><ul><li>After that, we click our <strong>xib</strong> file and add 2 Labels with constraints. And we also import these 2 Labels into the <strong>CustomTableViewCell.swift</strong> file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGoBnnqW_wJLAivka6UFTQ.png" /></figure><ul><li>Our <strong>Custom Table View</strong> <strong>Cell</strong> is almost done. Now we should go back to the <strong>View Controller</strong>. We will write a function for register our custom table view cell on the main table view.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d53b4505408788d8755858377a4fcd58/href">https://medium.com/media/d53b4505408788d8755858377a4fcd58/href</a></iframe><ul><li>If you realize we used the identifier which we have created before in <strong>customTableViewCell.swift</strong>. This method allows us to access the <strong>identifier</strong>. So, we said to view controller we have a <strong>Custom Table View Cell</strong> and this <strong>Cell</strong> called <strong>CustomTableViewCell</strong>. And after we did delegation process.</li><li>In summary, we created a <strong>Custom Cell</strong> and we defined into the <strong>Main Table View</strong> on the <strong>View Controller</strong>. Now we will talk about which data to show in <strong>Table View Cells</strong>. We can create a new model for this.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc32371ab3d5fb81fcc262475b3e0c3f/href">https://medium.com/media/bc32371ab3d5fb81fcc262475b3e0c3f/href</a></iframe><ul><li>We create an array of type <strong>Person</strong> to hold data.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c66abac8b6707222e32309afdc03bfd/href">https://medium.com/media/1c66abac8b6707222e32309afdc03bfd/href</a></iframe><ul><li>Now we can create a function to add some data into the <strong>array</strong>.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4598c8d3605765aef9e3056cbb6c99a2/href">https://medium.com/media/4598c8d3605765aef9e3056cbb6c99a2/href</a></iframe><ul><li>As the last step, we define an <strong>extension</strong> and complete our <strong>Delegation</strong> processes.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a23d5a72080b94b71ff57503049a4a38/href">https://medium.com/media/a23d5a72080b94b71ff57503049a4a38/href</a></iframe><ul><li>Here, the most important thing is we indicate the cell in the <strong>Table View</strong> using <strong>tableView.dequeueReusableCellWithIdentifier. </strong>We perform the <strong>casting process</strong> in order to access the functions in the <strong>Custom Cell</strong>, and we send the necessary index in the array to the <strong>getData</strong> function that we have defined before.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*jGPXJB3YAfEVjS9vqVbjrg.png" /></figure><ul><li>We showed the image we designed specially, now we can come to the end of the article. Thank you to everyone who reads. I hope it was useful. See you in other articles.</li></ul><p>For those who wants to reach the full version of the project, I drop the link of the Xcode project here.</p><p><a href="https://github.com/bilalcandemir/CustomTableViewCell">GitHub - bilalcandemir/CustomTableViewCell</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=994d7e2b47ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS Geliştirme: Swift ile Custom Table View Cell Kullanımı]]></title>
            <link>https://medium.com/@ahmetbilalcandemir/ios-geli%C5%9Ftirme-swift-ile-custom-table-view-cell-kullan%C4%B1m%C4%B1-6c80799c43ea?source=rss-c2f7b0223cf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c80799c43ea</guid>
            <category><![CDATA[table-view-cell]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift-programming]]></category>
            <dc:creator><![CDATA[Ahmet Bilal Candemir]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 18:04:52 GMT</pubDate>
            <atom:updated>2022-09-17T18:04:52.964Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzubAJRUKCfpTalUfSN81Q.jpeg" /></figure><p><strong>Herkese Merhaba. IOS geliştirme ile alakalı bilgilendirici içerikler ve tutorial paylaşmayı hedeflediğim blog sayfamın ilk yazısı ile sizlerleyim. Bu yazımda sizlere Xcode platformunda swift dili ile iOS geliştirirken en çok kullanılan yapılardan birisi olan Table View’a özelleştirilebilir (Custom) Cell tasarlayıp, bu Cell tasarımını Table View üzerinden nasıl gösterileceğini anlatacağım. Şimdiden herkese faydalı olması dileği ile 🙂</strong></p><p>Yazıya başlamadan önce Custom Table View Cell konusunun neden anlaşılması gerektiği sorusuna kısa bir cevap arayalım.</p><p>Udemy, Youtube vb. sitelerde verilen eğitimler genelinde Table View Cell tasarlanırken Prototip Cell üzerinden tasarım yapılıyor. Lakin bu konuda dikkat etmemiz gereken konu, bu yapının büyük bir çoğunlukla şirketler ve geliştiriciler tarafından tercih edilmemesi. Bu gerekçeler neticesinde, umarım bu yazının sonunda kendi tasarladığımız hücreleri Table View üzerinden gösterebiliyor olacağız. Öyleyse başlayalım 🏁</p><ul><li>İşlemlerimize öncelikle bir proje oluşturmakla başlıyoruz. Projemizi ilk açtığımızda karşımıza gelen <strong>Storyboard’a</strong> bir <strong>Table View</strong> ekleyip constraint lerini dört köşeden sıfır olacak şekilde veriyoruz.</li></ul><figure><img alt="View Controller" src="https://cdn-images-1.medium.com/max/930/1*v0huWJZVuetmXXiWYyNPUA.png" /></figure><ul><li>Daha sonra <strong>View Controller</strong> kod bloğumuzu <strong>Storyboard’un</strong> yanında açıyoruz ve <strong>Table View’ı</strong> klavyeden <strong>kntrl</strong> tuşuna basılı tutarak <strong>farenin</strong> sol click’i ile <strong>View Controller</strong> sınıfının içine doğru sürükleyip bırakıyoruz. Burada çıkan ekrandan <strong>Table View’a</strong> bir isim veriyoruz.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*h3o6JCCWhh0jlnjjHEp8Mw.png" /><figcaption>View Controller artık Table View’ı mainTableView ismi ile tanıdı.</figcaption></figure><ul><li>Bundan sonraki işlemimiz ise <strong>Custom Table View Cell</strong> oluşturmak olacak bunun için <strong>File -&gt; New -&gt; File</strong> veya <strong>Cmd + N</strong> ile yeni dosya oluşturma ekranını açıyoruz. <strong>Cocoa Touch Class</strong> seçeneğini seçip <strong>Subclass of:</strong> bölümünden <strong>UITableViewCell</strong> seçeneğini seçtikten sonra isim veriyoruz. Burada en önemli nokta tasarımı yapacağımız XIB dosyasını oluşturmak için <strong>Also Create XIB</strong> file seçeneğini seçmek olacak.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wodGY1Yxz46zjgEiS9ZoLQ.png" /></figure><ul><li><strong>Custom Table View Cell</strong> adında oluşturduğumuz <strong>.swift</strong> uzantılı dosyaya tıklayıp Classın altına View Controller’dan ulaşabilmemiz için <strong>static</strong> tipinde bir identifier oluşturuyoruz ve ismini class ismi ile aynı ismi veriyoruz, burada istediğiniz ismi verebilirsiniz . Niye oluşturduğumuz konusuna ilerde tekrar değineceğim.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eaf0404208935b67fae9a1fafae3aac6/href">https://medium.com/media/eaf0404208935b67fae9a1fafae3aac6/href</a></iframe><ul><li>Bu adımdan sonra <strong>Custom Table View Cell</strong> adında oluşturduğumuz <strong>.xib</strong> uzantılı dosyaya tıklıyoruz ve 2 adet Label ekleyip <strong>Constraint’lerini </strong>verdikten sonra <strong>xib</strong> dosyamızdan <strong>swift</strong> dosyamıza bu iki Label’ı tanımlıyoruz.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGoBnnqW_wJLAivka6UFTQ.png" /></figure><ul><li>Bu adımları tamamladıktan sonra oluşturduğumuz <strong>Custom Table View Cell’i</strong> View Controller’daki <strong>mainTableView’a</strong> tanıtmamız ve kayıt etmemiz gerekiyor. Bunun için <strong>configureTableView</strong> adında bir fonksiyon oluşturup içine şu kodları ekliyoruz.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d53b4505408788d8755858377a4fcd58/href">https://medium.com/media/d53b4505408788d8755858377a4fcd58/href</a></iframe><ul><li><strong>Register</strong> işlemimizi yaparken fark ettiyseniz <strong>.identifier</strong> şeklinde kullandığımız yapı aslında <strong>CustomCell</strong> de oluşturduğumuz <strong>static let identifier</strong> ı almamızı sağlıyor. Burada Table View’a <strong>CustomTableViewCell</strong> adında Custom bir Cell’imiz olduğunu tanıtıyoruz. Altındada delegation işlemlerimizi yaptık.</li><li>Buraya kadar toplamamız gerekir ise kendimize bir Table View Cell oluşturduk ve View Controller’ da bu cell i tanımladık şimdi geleceğimiz konu ise bu tanımladığımız cell deki Label’larda ne göstereceğimiz konusu.</li><li>Bunun için bir model tanımlıyıp içine <strong>name</strong> ve <strong>phoneNumber</strong> adında iki adet değişken atıyoruz.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc32371ab3d5fb81fcc262475b3e0c3f/href">https://medium.com/media/bc32371ab3d5fb81fcc262475b3e0c3f/href</a></iframe><ul><li>Modeli oluşturduktan sonra verileri tutacağımız diziyi oluşturuyoruz ve <strong>Person</strong> tipinde olacağını belirtiyoruz.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c66abac8b6707222e32309afdc03bfd/href">https://medium.com/media/1c66abac8b6707222e32309afdc03bfd/href</a></iframe><ul><li>Şimdi ise bir fonksiyon tanımlayıp diziye değerler tanımlayalım</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4598c8d3605765aef9e3056cbb6c99a2/href">https://medium.com/media/4598c8d3605765aef9e3056cbb6c99a2/href</a></iframe><ul><li>En son adım olarak ise bir extension tanımlayıp <strong>Delegation</strong> işlemlerimizi tamamlıyoruz.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a23d5a72080b94b71ff57503049a4a38/href">https://medium.com/media/a23d5a72080b94b71ff57503049a4a38/href</a></iframe><ul><li>Burada en önemli nokta table <strong>view.dequeResubleCell</strong> komutu ile delegation yaptığımız <strong>Table View’da</strong> bu Cell’i göstereceğimizi belirtiriyoruz. <strong>Casting</strong> işlemini ise <strong>Custom Cell</strong> içerisindeki fonksiyonlara erişebilmek için yapıyoruz ve önceden tanımladığımız <strong>getData</strong> fonksiyonuna array’deki gerekli indexi gönderip işlemimizi tamamlıyoruz.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*jGPXJB3YAfEVjS9vqVbjrg.png" /></figure><ul><li>Verileri’de gösterdiğimize göre yazımızın sonuna gelebiliriz. En basit hali ile kendi hücremizi bu şekilde oluşturup kullanabiliriz 😊 okuyup vakit ayıran herkese teşekkürlerimi sunarım. Umarım faydalı olabilmişimdir. Başka yazılarda görüşmek üzere.</li></ul><p>Projenin tam haline ulaşmak isteyenler için Xcode projesinin linkini de buraya bırakıyorum.</p><p><a href="https://github.com/bilalcandemir/CustomTableViewCell">GitHub - bilalcandemir/CustomTableViewCell</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c80799c43ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>