<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Og Hiro</title>
    <description>The latest articles on DEV Community by Og Hiro (@og_hiro_b66497dde5939e786).</description>
    <link>https://dev.to/og_hiro_b66497dde5939e786</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261769%2Fb33ab43f-a3e3-4028-92ac-1e4856cbdc7a.png</url>
      <title>DEV Community: Og Hiro</title>
      <link>https://dev.to/og_hiro_b66497dde5939e786</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/og_hiro_b66497dde5939e786"/>
    <language>en</language>
    <item>
      <title>Why iPhone Focus Mode Still Lets You Open Distracting Apps</title>
      <dc:creator>Og Hiro</dc:creator>
      <pubDate>Tue, 24 Nov 2026 05:16:27 +0000</pubDate>
      <link>https://dev.to/og_hiro_b66497dde5939e786/why-iphone-focus-mode-still-lets-you-open-distracting-apps-1ae0</link>
      <guid>https://dev.to/og_hiro_b66497dde5939e786/why-iphone-focus-mode-still-lets-you-open-distracting-apps-1ae0</guid>
      <description>&lt;p&gt;You’re writing an email. Work Focus is on. No banner appears, no notification sounds, and your hand still opens a feed between two awkward sentences. From a user’s point of view, “I was distracted” describes both a notification and a reflex tap. From a developer’s point of view, they’re two different events.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with what happened on the device
&lt;/h2&gt;

&lt;p&gt;Apple’s Focus settings let you decide whose notifications and which apps’ alerts can reach you. That is useful when a banner from the group chat takes you out of your draft. But the phone can be perfectly silent when you tap a social app yourself. Changing which notifications are delivered doesn’t, on its own, give that app’s icon a different behavior.&lt;/p&gt;

&lt;p&gt;A session-based blocker has a different job. Apple’s Family Controls picker lets a person select apps or categories. Managed Settings can apply a shield to the selected tokens. The person decides which apps belong on that list. That matters when the course PDF, class chat and distracting feed all live on the same device.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat a pause as a real product decision
&lt;/h2&gt;

&lt;p&gt;In &lt;a href="https://www.focusgotchi.com/" rel="noopener noreferrer"&gt;Focusgotchi&lt;/a&gt;, the free timer pairs a task with a pixel pet that grows through focused minutes. The optional Pro blocker adds a rule to a running focus session. Consider a student who needs to send a reference to a teammate. They pause the session. Leaving a shield up at that point makes the pause button feel broken, even if the countdown itself stopped perfectly.&lt;/p&gt;

&lt;p&gt;Here’s a small acceptance test for that interface. Pick one feed to shield and one notes app to leave open. Start focus and try both. Pause and try the feed. Resume and try it again. Finally end the session early and reopen the feed. The expected sequence for the selected feed is shielded, available, shielded, available. The notes app should open throughout.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa2urvquwgi53oqb5bmxv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa2urvquwgi53oqb5bmxv.png" alt="The Focusgotchi app blocker on iPhone showing the switch for blocking during focus and the app picker." width="527" height="1100"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why would someone turn the blocker on again tomorrow?
&lt;/h2&gt;

&lt;p&gt;A shield only helps once you choose to start a session. In Focusgotchi, you’ve hatched a pet, and studying with it is how you keep it well. Your selected Gotchi gets sick after three full days without focus together and dies after seven full days away. Fifteen focused minutes before then can help a sick pet recover. Opening your notes for a few minutes can feel worth doing even on a day when the deadline is a long way off.&lt;/p&gt;

&lt;p&gt;Over three hours of focus the starter grows from its shell into an adult. Those sessions can also earn the 180 focus coins it costs to hatch Sunny. Your first pet stays in your collection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask one question before adding a stricter setting
&lt;/h2&gt;

&lt;p&gt;“What happened the last time you got interrupted?” If the answer is “a message popped up,” tune the notification rules. If it’s “I opened the feed myself,” look at what should happen on that tap. And if it’s “I finished one paragraph and didn’t know what to do next,” a clearer task label might do more than either setting. Three people can ask for better focus and need three different things from the interface.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Technical references: Apple’s iPhone User Guide, “Allow or silence notifications for a Focus on iPhone,” and Apple Developer Documentation for FamilyActivitySelection and ShieldSettings.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ux</category>
      <category>ios</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Building an iPhone Focus Timer That Gives Short Sessions Full Credit</title>
      <dc:creator>Og Hiro</dc:creator>
      <pubDate>Tue, 24 Nov 2026 04:48:26 +0000</pubDate>
      <link>https://dev.to/og_hiro_b66497dde5939e786/building-an-iphone-focus-timer-that-gives-short-sessions-full-credit-3kbi</link>
      <guid>https://dev.to/og_hiro_b66497dde5939e786/building-an-iphone-focus-timer-that-gives-short-sessions-full-credit-3kbi</guid>
      <description>&lt;p&gt;A user focuses for 3 minutes and 40 seconds, stops to answer the door, and later does another 2 minutes and 20 seconds. How many whole minutes of work should your app show? Six. Round down each session independently and you get five. It’s a small bug until the missing minute is the one someone needed to unlock something.&lt;/p&gt;

&lt;p&gt;I make Focusgotchi, an iPhone focus timer where a pixel pet grows as you work. The same interval matters in three places: the countdown, the pet’s growth, and the coins on the session receipt. Here are two implementation decisions behind that little room on the screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  A countdown needs a deadline
&lt;/h2&gt;

&lt;p&gt;A repeating UI callback is useful for drawing the seconds. Depending on a callback firing exactly once per second makes it a poor record of elapsed work. Think about what should happen when a user starts a 25-minute session, locks the phone, and returns ten minutes later. The screen owes them a countdown near fifteen minutes regardless of how often it drew a frame.&lt;/p&gt;

&lt;p&gt;In Focusgotchi the running phase has a deadline. On refresh, the model compares that deadline with the current time. Pausing preserves the remaining duration. Resuming establishes a deadline from that remainder. A break has its own phase, so making tea during a five-minute break cannot accidentally grow the pet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Round at the receipt, keep the remainder
&lt;/h2&gt;

&lt;p&gt;The coin rule is one coin per complete minute of focus. Here’s the accounting on paper using whole seconds for the example.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Session&lt;/th&gt;
&lt;th&gt;Focus seconds&lt;/th&gt;
&lt;th&gt;Seconds carried in&lt;/th&gt;
&lt;th&gt;Coins earned&lt;/th&gt;
&lt;th&gt;Seconds carried out&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Before the doorbell&lt;/td&gt;
&lt;td&gt;220&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After the doorbell&lt;/td&gt;
&lt;td&gt;140&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you store only the displayed coin count, you’ve lost information you need for the next receipt. Keep the unpaid seconds too. A useful test is to split a fixed interval at several different points, settle each piece and compare the final balance and remainder to a single uninterrupted run.&lt;/p&gt;

&lt;p&gt;A second clock matters to the person holding the phone. After three full days without focus together, their selected Gotchi gets sick. After seven full days away, it dies. Fifteen focused minutes before day seven can help it recover, even across several sessions. That’s a reason to come back before class even if you only have six minutes. Over three hours of focus, the starter grows up. Those 180 minutes also earn 180 coins, enough to welcome Sunny as a new egg. The player can keep the pet they raised and decide when to begin again with another.&lt;/p&gt;

&lt;h2&gt;
  
  
  One more test worth writing
&lt;/h2&gt;

&lt;p&gt;Start with a brand-new pet. Focus for six minutes, take a four-minute break and check the growth state. It should still reflect six focused minutes. Now do four more minutes of focus. This time the hands should appear over the rim of the shell. The test puts a visible consequence on the difference between elapsed time and focused time.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.focusgotchi.com/" rel="noopener noreferrer"&gt;Focusgotchi homepage&lt;/a&gt; shows what those little sessions look like on an iPhone.&lt;/p&gt;

</description>
      <category>swift</category>
    </item>
  </channel>
</rss>
