Starting in Xcode 13, SwiftUI views can now be previewed in landscape orientation using the new previewInterfaceOrientation modifier. For example, here we’re previewing a MenuView in both portrait and landscape by creating two instances of our view within its PreviewProvider: struct MenuView_Previews: PreviewProvider { static var previews: some View { MenuView() MenuView().previewInterfaceOrientation(.landscapeRight) } } Note […]
It’s a basic tenet of friendship that you get to choose your friends. In this episode, we look at two institutions that experimented with taking away that choice. First, we follow two women who lived in Catholic convents in the 1960s. Then, we hear about a program for high schoolers — Telluride Association Summer Program […]
Do you remember when having a great website was enough? Now, people are getting answers from Siri, Google search snippets, and mobile apps, not just our websites. Forward-thinking organizations have adopted an omnichannel content strategy, whose mission is to reach audiences across multiple digital channels and platforms. Article Continues Below But how do you set […]
Episode 120 (The Prairie Chicken in Wisconsin: Highlights of a Study of Counts, Behavior, Turnover, Movement, and Habitat) The Memory Palace is a proud member of Radiotopia, from PRX, a curated network of extraordinary, story-driven shows. Music We move between three different pieces from Camille Saint-Saens’: Suite, Op. 90: II Menuet, and two from Carnival of… Source […]
Today we’re tracking a pair of deals, one on the Apple Pencil 2 and one on the 2020 M1 MacBook Air. These sales include the current best price online for the Apple Pencil 2, and an all-time low price on the MacBook Air. Note: MacRumors is an affiliate partner with some of these vendors. When […]
When writing asynchronous code using Combine, we might sometimes want to share the result of a given set of concurrent operations, rather than performing duplicate work for each one. Let’s take a look at how the share operator can enable us to do that in a really neat way. As an example, let’s say that […]
With these 25 curved sectional sofas you’ll have the space to entertain, relax with the family and utilize every bit of your living room. You do need a bit of space to fit a couch this size in your living room, but they’re all so gorgeous you’ll have a hard time picking. Check out our […]
Whether you’re remodeling your kitchen or just want to grab some inspiration for the home you hope to move into one day, we’ve got some unique ideas to grab from today. The ultimate result will depend on your preferences, how the rest of your house looks, and, of course, the budget. Nonetheless, whether you like […]
It’s one of the most common and perplexing friend mysteries out there – when friends ghost friends. In this episode, we examine a contemporary real-life ghost story to see why we’re so haunted. Also, a listener attempts to find the friend who got away. And finally, we offer a new way to think about friendship […]
Swift’s Codable protocol and its surrounding APIs provide a built-in way to serialize and deserialize Swift values to and and from various formats, including JSON and Plists. Arguably one of the most appealing aspects of Codable is its tight integration with the Swift compiler, which often makes it possible for the compiler to automatically generate […]