Comes with iPhone 12 IDE application of Apple Xcode 12 and iOS 14 What’s new?

Tram Ho

Comes with iPhone 12 IDE application of apple Xcode 12 and ios 14 What’s new?

The event of introducing new products of apple has always been waiting for most people, especially for fans this year, the appearance of iphone 12 with a design that promises to be fever will still drag. long (I take a frame here). Apple not only always comes up with new products, but the apple firmware always supports the update for its older versions.

While immersed in the new apple product, you still haven’t forgotten the annual exciting apple avocado trekking event, WWDC, with the introduction of the ios 14 with many outstanding features. like a completely new interface, Back-tap, Picture in Picture, … and what I care most about is the update with the ios version of Xcode 12 – IDE, I guess I look at more time than my face lover for a day. So what’s Xcode 12 and ios 14 for develop to develop, let’s go dissect this: v

Xcode 12

The first is to quickly ship the dark mode switch on the simulator

To switch dark mode on the simulator, choose Features → Toggle Appearance (new in Xcode 12). Or in Xcode, when your app is running the debugger, select Environment Overrides on the debug bar and a popup will appear allowing you to switch modes

IBDesignable

If your code is using IBDesignable and cannot compile when you display the view in the nib editor, a Build Failed notification will appear in the Attributes inspector and give you a brief guide on the error that occurred.

VECTOR IMAGES

The image file in the asset catalog can be a vector-based PDF file or an SVG (With Xcode 12). By default, the vector-based image is automatically resized to have a resolution for the device using the X2 and X3 images because it is a vector image. When you select Preserve Vector Data the image will be automatically changed and kept sharp. Also be careful in using default icons in IDE because some are unavailable on ios 13 or some have different names in ios 13 and 14 can lead to your app crash.

View Debugger

With the new update in Xcode 12 you can export the debug hierarchy and save it. By choosing File → Export View Hierarchy. And open the resulting file for review in the debugger window with Xcode.

The view debugger (“View Debugger”) can display the Editor → Show Layers layers.

New in Xcode 12, in the UI test, XCTOSSignpostMetric allows you to track scrollbar drag and deceleration performance by measuring animation rate “hitches”, as well as frame rate, between os_signpost calls;

IOS 14

UICollectionView

iOS 14 UICollectionViewCell has the contentConfiguration and backgroundConfiguration (“Apple’s Cell Configuration Architecture”) properties. Apple wants to replace using textLabel or detailTextLabel before, you can setup via contentConfiguration

New in iOS 14, collection view can use most of the same features as table view. Its cells can look like table view cells, including accessory views, swiping, and so on. This Collection view is called List. This is a component layout feature. An entire layout or part of it can be a List.

IOS 14, collection view can also be decentralized. You can make any collection view hierarchical, and the rendering will be easy with a partial list, as everything is configured automatically for you. The better illustration you can understand will have the following hierarchy

The configuration I will not mention in detail if you want to learn more, you can search with UICollectionViewDiffableDataSource.

UISplitViewController

New in iOS 14, the UISplitViewController has been completely overhauled, giving it an improved architecture. In iOS 14, split view controllers can have two or even three child elements that views can appear simultaneously. (Apple’s Contacts app is an example where the split view controller has three sub-views.)

UIColorPickerViewController

iOS 14, a color picker is provided. It is a view controller, not a view. To use create a UIColorPickerViewController, assign it a delegate, set its supportsAlpha if desired (the default is true, meaning the user can choose a color with no color) and present view controller.

UIDatePicker

iOS 14, the display interface has been completely replaced. The old interface looks like a UIPickerView, but you may not get it unless you set the date picker’s preferredDatePickerStyle to .wheels. In the new interface:

  • Compact:

The date picker interface is just one line of text. When the user touches it, it expands to show the entire interface.

  • Inline:

Full date picker view is visible at all times.

You can also snap content as PDF with createPDF (configuration: completionHandler :), and you can export content as web archive with createWebArchiveData (completionHandler :).

summary

In this article are some of the features that I have found in Xcode 12 and that are not all in the last update. Thank you for watching and reading the article. The article is not really complete because it’s just on my point of view, it is very happy if you have further comments on the function you find useful in Xcode 12.

Share the news now

Source : Viblo