This week Apple finally released Xcode 11.4 that brings the support of mouse and trackpad for iPadOS.

SwiftUI Weekly The curated collection of links about SwiftUI. Deliver every Monday.

This week Apple finally released Xcode 11.4 that brings the support of mouse and trackpad for iPadOS. SwiftUI introduces the onHover and hoverEffect modifiers to help us utilize trackpad and mouse support.

News

Deadline for App Updates has Been Extended developer.apple.com – Share We greatly value the worldwide developer community, and appreciate your commitment to making a difference in people’s lives through the power of technology. To accommodate developers who may need additional time to update their existing apps on the App Store, the deadline for adhering to the requirements below has been extended to June 30, 2020. Apps for iPhone or iPad must be built with the iOS 13 SDK or later.

What’s new in Swift 5.2 www.hackingwithswift.com – Share Swift 5.2 arrived with Xcode 11.4, and includes a handful of language changes alongside reductions in code size and memory usage, plus a new diagnostic architecture that will help you understand and resolve errors faster.

Reading

Hover effect in SwiftUI swiftwithmajid.com – Share Last week Apple updated iPad Pro and added trackpad support to iPadOS. We finally have Xcode 11.4, which introduces the onHover and hoverEffect modifiers to help us utilize trackpad and mouse support in SwiftUI. This week we will learn how to be a good iOS citizen and add support for the trackpad to our SwiftUI views.

A guide to the SwiftUI layout system - Part 1 swiftbysundell.com – Share Let’s take a look at the SwiftUI layout system by starting to build a full-screen view from scratch. Along the way, we’ll use many different techniques and APIs, which lets us explore the underlying rules of the SwiftUI layout system.

A guide to the SwiftUI layout system - Part 2 swiftbysundell.com – Share Let’s continue exploring the SwiftUI layout system by taking a look at a couple of more advanced techniques, such as how we can align views with dynamic dimensions and how to read a view’s geometry in order to build custom layouts.

Create Circular Text Using SwiftUI medium.com – Share SwiftUI pretty new and nice to working with. It totally change our mindsets when we come from UIKit, AppKit. However master it helping us build a custom controls easy than before. We are going to build a circular text and I will show you how easily to do it.

Code

TrackableScrollView github.com – Share A customizable ScrollView that supports to get the content offset.

Tips

How to debug your SwiftUI previews in Xcode developer.apple.com – Share With SwiftUI and Xcode 11, it’s much faster to create great user interfaces for apps on iOS, macOS, watchOS, and tvOS. And here’s a valuable tip: You can debug your SwiftUI code live in Xcode to make the process even easier.

Create View Beyond Safe Area in SwiftUI smashswift.com – Share By default, each view is restricted by a safe area. The safe area helps us to create views that won’t overlap navigation bar, toolbar or any other similar view. There is option to ignore this limitation with .edgesIgnoringSafeArea() modifier.

Inline wrapping of UIKit or AppKit views within SwiftUI swiftbysundell.com – Share While writing a wrapper that conforms to UIViewRepresentatable isn’t a huge task — wouldn’t it be nice if we instead could just wrap any legacy view inline, right where we need to use it?

Video

From MVC to SwiftUI — Reusing the Model talk.objc.io – Share We start to implement the MVC sample app from our App Architecture book in SwiftUI, reusing the original model.

Did you enjoy this issue?

If you don't want these updates anymore, please unsubscribe here If you were forwarded this newsletter and you like it, you can subscribe here