
[ad_1]
Echoing new features via tweets
Now that the excitement for WWDC 22 has subsided, here’s a look at some of the best tweets to give you the pulse of most of the developer announcements from the event.
Starting with iOS 16, we now have a chart framework to easily create bar, line, area, point or rule charts with customizable axes and legends.
See how to annotate a PointMark
SwiftUI charts with almost any view – in the case below, using SF symbols:
For linear gradients with the same color, you don’t need to use LinearGradient
Now the constructor. Paul shows how to invoke gradient
on one color
To get that effect straight into your thoughts:
My favorite new SwiftUI feature is the ability to export views as images using ImageRenderer
,
But do you know how to match the resolution of the scene? fortunately, there is a scale
property which you can call on ImageRenderer instance as shown below Tweet by Daniel,
We can directly set editable list option – like swipe to delete or reorder inside new init function edits
argument:
A context menu with preview that is displayed at the top of the menu? you’ve got it:
A built-in SF symbol search within Xcode 14 is a welcome addition. But the new changeable color provides plenty of opportunities to display state-driven symbols… as shown in the tweet below:
The out-of-the-box support for Grid will definitely help in creating more complex layouts in SwiftUI. Like the tweet below (with gist sample) shows how to use Grid with SF Symbols and Timeline View.
SwiftUI released a layout protocol this year for creating custom container views. Here’s a tweet showing how to take advantage of it:
To dynamically change the type of the layout container without redrawing its subviews, we’ve got a new AnyLayout
structure:
Want to create scenes that are equally radially spaced? Here’s a tweet that shows how to use _CircleLayout
– which is currently private.
Previously, Xcode would autocomplete the argument label of a function/initializer, even if it was already written – leading to redundancy. Xcode 14 handles this more efficiently as shown in the tweet below:
a LabeledContent
Views Lets You Add a Label to Any View — Without Nesting HStack
,VStack
Way. what’s more? It’s also good for accessibility!
With iOS 16, SwiftUI is deprecated NavigationView
in favor of NavigationStack
, In addition, there is a NavigationPath
To store and modify the root stack programmatically:
Plus, it’s so easy to set up Deep Link and Handoff as shown in Majid’s tweet,
Now you can tap on a scene and get its location — global
either local
(local is relative to its super view). Here’s a simple demonstration SpatialTapGesture
For Prototype:
To add more effect to SwiftUI views, we can now take advantage of inner shadows like so:
Circle().fill(.red.gradient.shadow(.inner(radius: 10)))
Paul shows how to use it together CoreMotion
To bring 3D effects to your views:
This picks up the pulse of the SwiftUI Twitterati for WWDC 22. I can’t wait to see the amazing apps we can build using the new features.
[ad_2]
Source link
#Twitterati #Roundup #WWDC #SwiftUI #Highlights #iOS #Anupam #Chugh #July