Old driver iOS weekly, just for you to present valuable information.

You can also contribute to the project, if you find valuable information, articles, tools, etc., please send it to us in Issues, we will deal with it as soon as possible. Be sure to include a reason for your recommendation. Suggestions and comments are also welcome to Issues.

WWDC20

This week we posted 3 articles from WWDC20 on our official account, and they’re all great!

  • When widgets get smart
  • The secret to getting the Objective-C framework to co-exist with Swift
  • Understand numerical computation in Swift

The novice recommended

🐕 Designing Custom UICollectionViewListCell in Interface Builder

@ water: UICollectionViewList with Custom Cell and Custom Configuration UICollectionViewList with Custom Cell and Custom Configuration How to customize UICollectionViewListCell in Interface Builder For novice friends, it is necessary to master both methods, and interested readers can try oh ~

The article

🌟 🐕 Ex1. mix-in of Ruby features in CocoaPods

JonyFang: This article starts with The Ruby syntax features used in CocoaPods. It describes the mix-in pattern introduced in Ruby to solve the problem of multiple inheritance, and Ruby defines syntactic sugar for module and include keywords.

Look at the article with these questions in mind:

  • What is mix-in, and how does it relate to multiple inheritance?
  • How does mix-in land in most programming languages? (Talk about Swift apps)
  • What are the disadvantages of multiple inheritance?
  • How do I use mix-in features in CocoaPods?

Finally, the paper introduces the idea of Duck Isolated program design, and you can study it yourself if you are interested.

🌟 🐕 React Native Upgrade Guide

Looping: React Native has one of the biggest headaches as a cross-end framework, and that’s version updates. The most critical step in a library upgrade is to update the configuration file to ensure that it will compile properly. Therefore, this paper introduces the technical details of the configuration of each end project at the beginning, and also shares its own upgrade process, and provides the upgrade records of three versions from 0.60 to 0.62 for reference. I believe that with the guidance of this information, it will be of great help to the team planning to upgrade RN.

🐕 Entry Points in Swift: How @main and @UIApplicationMain work internally

@eyrefree: This article introduces how Swift determines the entry point of the application, and summarizes the original intention of Apple’s design in the process of analyzing the working principle of @main and @UIApplicationMain.

🐎 SVG image assets supported in Xcode 12

@Smiling drinking arsenic: Xcode 12 brings some new features, and we found that Assets already support SVG resources. Although Xcode has finally converted SVG to PNG, the same way the PDF format has worked for us for years, there are some side benefits to this change.

🐎 SwiftUI betas – what changed before 1.0

@Damien: SwiftUI received a lot of attention from developers when WWDC was launched in 2019. After a year of evolution, SwiftUI was greatly enhanced at WWDC 2020. How has SWiftUI changed from last year to this year? This article summarizes the changes from SwiftUI 1.0 to the present. If you are interested in SwiftUI, please read it.

🐎 Sharing layout information in SwiftUI

Xiaofei86: SwiftUI view layout depends on the state of each view. This state is a mixture of internal attributes or values in an external context. In advanced custom layouts, sometimes the parent view also needs direct or indirect information from its children. A common example is when a parent view needs to know the size of its children. In this article, we’ll explore how to do this with a PreferenceKey.

code

🐎 Codable + PropertyWrapper = ☕

Zvving: Codable serialization is a fast serialization solution that is more painful to use:

  • Custom mapping is complex
  • Do not support the DefaultValue
  • It is of a strict type and does not support downgrade policies. For example, Int/Double is degraded to String
  • Multiple CodingKeys cannot be mapped to the same property

CodableWrapper attempts to address these issues while providing a concise implementation through PropertyWrapper. Library just launched, welcome to exchange feedback.

From the author Winddpan self-recommendation

push

Senior driver Weekly team combined knowledge collection and SwiftGG Translation group included a reliable internal promotion position.

If you want to looking for a job, click here: www.yuque.com/iosalliance…

If you want to recruit people, click here: www.yuque.com/iosalliance…

Of course, you are also welcome to pay attention to our weekly report, we will update the editorial post at the bottom of each weekly report.

Pay attention to our

We have opened an official account, and the official account (LSJCoding) will push a message when each issue is released, welcome your attention.

RSS feeds are also supported: github.com/SwiftOldDri… .

instructions

🚧 indicates that a tool is required, and 🌟 indicates that editing is recommended

Estimated reading time: 🐎 in a short time (1-10 mins); 🐕 medium (10-20 mins); 🐢 slow (20+ mins)