
That’s the fancy-pants word for that sleepy, can’t be arsed feeling you get after lunch, also known as the food coma. Me: Hi brain, I’m going to go home today and work all evening after that hard day at work, then I’m gonna skip dinner and go to sleep at 3AM.īrain: You f**king wierdo, no way are we doing that! Why don’t we just watch a little bit of YouTube and see where that takes us? 3. 20 minutes is such a short amount of time that your brain will view it as low commitment. If you get home with the intention to just work for 20 minutes on your project, be it your start-up or whatever else you want to work on, you can trick your brain into capitulating. The way to capitalise on this evolutionary productivity hack is to have the 20 minute mindset. I know that once I get really stuck into my code, I don’t really want to stop until I finish making a particular feature or solve a particular problem. I’m guessing that if you chose to work on a particular start-up there is usually some aspect of it that you find fascinating. But you can use inertia in your favour too. Once you’re sat on that comfy couch or loaded up Reddit, you’ll need Herculean strength to switch to a productive task. Have you ever thought, “I’ll just relax a bit, give myself a break then I’ll get to work”. Once you open your house door without a solid work plan for your evening, you’ve already lost that evening. It’s so easy to sit on the couch and switch on the TV (we don’t actually own a TV, that’s probably the biggest productivity hack I have found). This is what I want my widget to look like.This mostly applies to after work motivation. I think a widget would be a great addition to the app, to be able to know at a glance at all times how caffeinated I am. So I created an app to log and track the caffeinated beverages I drink and to give me an estimate of how much caffeine is in my body. I don't know about you, but I've been drinking a lot of coffee lately. Because they're self-contained experiences, new in iOS 14 and macOS Big Sur, widgets are an amazing opportunity to learn and use SwiftUI, even if you need to deploy your app to older versions of our OSes where SwiftUI may not be available. Thanks to SwiftUI's adaptability, you can write a widget and deploy it to both iOS and macOS. With SwiftUI and WidgetKit, you can provide a timeline of views to be displayed by the Home Screen at the appropriate time. And we'll finish by going over some of the new APIs that make building widgets with SwiftUI awesome.

Then, in the main part of this session, we're going to build a widgets view together. First, we'll talk about how widgets are enabled by SwiftUI.
