Feeds 

State Pattern using Unity | raywenderlich.com

While programming your in-game entities, there are cases where they need to behave differently under different conditions, which suggests an idea of a state. But if you choose to employ a brute-force method, the code will quickly become an untangled mess with a lot of if-else conditions, nested and otherwise. To solve this problem elegantly, you can utilize the State design pattern and that’s what this tutorial is all about! In this tutorial, you’ll learn: The fundamentals of the State Pattern in Unity. What a finite state machine is and…

Read More
Feeds 

10 Best Photo Apps For Incredible iPhone Photography (2020 Edition)

With so many iPhone photo apps available, how do you know which ones to choose? To help you decide, we’ve compiled a list of the 10 best photography apps to improve your iPhone photos. Read on to discover the best photo apps for your needs. iPhone Photo Apps: Which Ones Do You Need? There are many different types of photo apps available for iPhone. But there are only three types that you’ll need on a regular basis: Photo editing app Camera app Photo sharing app Photo editing apps and photoshop apps…

Read More
Feeds 

Save $250 on a 16-inch MacBook Pro [Deals & Steals]

And enjoy big savings on Twelve South. Photos: Apple, Twelve South It’s a great time to splash some of your holiday cash. A new year means January sales, and big discounts on some of the best tech. Our daily Deals & Steals blog will help you dig out the best. Here are some of today’s highlights: Find all these and more in our live blog below! Apple deals: Save on the hottest tech and accessories Note: On some of these deals, Cult of Mac might earn a small commission through an affiliate link.…

Read More
Feeds 

SMS user authentication with Vapor and AWS

There are many reasons why you’d want to verify your app’s users and identify them by phone number. SMS-based authentication is one of the options for a quick login experience that doesn’t require remembering passwords. Nowadays, there are many services which provide SMS, aka short message service, authentication on your behalf. Using them might save you some time writing backend code, but it adds another dependency to your server and all of your clients. Writing your own solution is simpler than you think. If you already have a Vapor server for…

Read More
Feeds 

Apple Watch heart monitor provides evidence in dramatic stabbing case

Your Apple Watch is always monitoring your heart. Usually that’s a good thing. Photo: Apple A Michigan man demonstrates why you should take off your Apple Watch before committing a crime. Even when you’re faking one. Sean Sammit claims he was attacked outside the synagogue where he works, but the heart rate monitor in his wearable shows something different. The telltale Apple Watch An Apple Watch continuously records the wearer’s heart rate as long as its on their wrist. And police say they used this data to help show Sammit…

Read More
Feeds 

Building an App with only code using Auto Layout

Making your app look good in both portrait and landscape layouts is something every developer needs to do on a daily basis. With the introduction of SwiftUI, it’s easier than ever to do so. However, since SwiftUI is still some years away from world domination, you may have to stick with your old friend Auto Layout a little longer. In the beginning of the iPhone era, Apple made only one device: the original iPhone. With only one device, you only had to cater to one screen size. But as years…

Read More
Feeds 

Nanoleaf’s new HomeKit lights are so smart they learn your routine

The Nanoleaf Learning Series seeks to make your home not just smart but also intelligent. Photo: Nanoleaf The upcoming Nanoleaf​ Learning Series home-automation products are designed to learn users’ needs and react proactively. These smart switches and smart bulbs support Apple’s HomeKit, so they can be controlled from an iPhone, too. Nanoleaf goes beyond HomeKit “With the Learning Series, we’re creating a truly intelligent lighting system that learns, senses and reacts, so that your lighting simply works as you need it to, and rarely require any adjustments,” said Gimmy Chu, CEO…

Read More
Feeds 

My 5 most-used apps this year

For my job at Cult of Mac, I test a lot of apps. But of course, I also use a lot of apps, for work, for recreation, and for making music. I thought I’d make a short list of my most-used apps this year. Few, if any, of these apps are new this year, although some of them received major updates in 2019. But all of them are excellent, well-made apps, well worth checking out. So, let’s get started. Launchbar Launchbar is so essential that a Mac without it feels…

Read More
Feeds 

View Binding Tutorial for Android: Getting Started

In this tutorial, you’ll learn how to use View Binding to find and configure your views. Since its origins, the Android framework has provided a way to find and configure views. You can achieve this by using findViewById() in Activities, Fragments and Views. On one hand, while there’s nothing wrong with that method, and you can still use it in your code. On the other, there are alternatives that are used more than this built-in Android mechanism nowadays. Finally, each of these alternatives have pros and cons for elegance, compile…

Read More