Old Driver iOS Weekly #245 | 2023-05-22

Original link: https://github.com/SwiftOldDriver/iOS-Weekly/releases/tag/%23245

ios-weekly

The old driver’s iOS weekly report only presents valuable information for you.

You can also contribute to this project. If you find valuable information, articles, tools, etc., you can submit them to us in Issues , and we will deal with them as soon as possible. Remember to write down the reason for the recommendation. Suggestions and comments are also welcome to Issues .

news

2022 App Store Transparency Report (PDF)

Apple released the 2022 App Store Transparency Report, which is the first time a similar report has been released. The transparency of the App Store is very beneficial to all developers and users. We have seen an increasingly open Apple in recent years. Undoubtedly worthy of recognition.

And there are a lot of reference data in it, you can read it yourself, we list a few of them:

  • 6,101,913 APPs were submitted for review, 1,679,694 were rejected, and 253,466 were approved after rectification. There may be multiple reasons for a rejection, and the most frequent one is Performance .
  • A total of 36,974,015 developers were banned in 2022, 428,487 were banned, of which 3338 appealed, and finally 159 appealed successfully. The top reason for bans is Fraud .
  • 282,036,628 user accounts banned in 2022, avoiding $2,090,195,480 in losses. Apple is working hard to ensure security, both for developers and users.

Novice recommendation

? Ranges in Swift explained with code examples

@zoeGuo : The article introduces the different types of Range in Swift: ClosedRange, CountableClosedRange, and the usage and rules of using simple operators instead of declaring Range. And it demonstrates how Range is converted to NSRange and how Range handles special characters in string usage. The article is suitable for Swift novice to quickly understand how to use Range.

article

? file behavior change in Swift 5.8

@AidenRao : Prior to Swift 5.8, both #file and #filePath returned the full path of the file, which may reveal sensitive personal information. Since Swift 5.8, #file supports only returning the filename and the module it appears in. This feature is disabled by default and can be enabled by adding -enable-upcoming-feature ConciseMagicFile to Other Swift Flags.

? Parallax header effect in SwiftUI using CoordinateSpace

@Barney : This article introduces the scrolling parallax effect using CoordinateSpace in SwiftUI.

  • Creating ParallaxHeader View: Create a ParallaxHeader view, including coordinate space, content and default height parameters.
  • Adding Blur Effect: Add a blur effect to the head view.
  • Offset Calculation: Calculate the head offset based on the relative position of the GeometryProxy and the coordinate space.
  • Height Calculation: Calculates the height modifier for the head view.
  • Usage: Shows how to use parallax headers in SwiftUI views.

? How to Open using Rosetta in Xcode 14.3

@Smallfly : Rosetta is a software translation tool developed by Apple that can translate and run applications based on Intel architecture instructions on the new Apple Silicon processor-based Mac.

After Xcode 14.3, the option to enable Rosetta in the application details was removed and integrated into the simulator selection list to facilitate switching between different architectures.

? Accessing Security Scoped Files

@Damien : The application of iOS App cannot directly access files outside its own container, such as files stored in iCloud, if you read them directly, you will receive a permission error prompt. If you need to access these files, you need to use the API related to the security scope. This article will introduce how to use these APIs in detail, interested students may wish to read it.

? Skip typing your login credentials manually with Xcode breakpoints

@anotheren : The article uses login credentials as an example to introduce how to use Xcode breakpoints to automatically enter debugging content. This method is non-invasive to the code and is a very useful Tips.

the code

swift-power-assert

@笑笑饮食酸: Power Assert is an assertion library created using the macro functionality in Swift. Swift macros are an experimental feature, so a pre-release Swift toolchain is required. When writing tests, we need to use different judgment functions. There are many Assertion APIs. You don’t need to memorize them by rote. You only need to create an expression that returns a Boolean value, and Power Assert will automatically display rich error messages.

Canopy

@JonyFang : Canopy is recommended for the CloudKit tripartite library, which isolates a series of external dependencies related to CloudKit, making the code easier to test.

Book

The Book of Modern C++

@kemchenj : This is a book compiled and published by domestic C++ developers. The content is collected from articles written by excellent authors on the Internet. This book contains ten themes:

  • Basics
  • Modern C++
  • C++23
  • Metaprogramming
  • Concurrency
  • Performance
  • Algorithms
  • Techniques
  • Tricks
  • Miscellaneous

Preface: It is not only broad, but also subtle, combined with the theme, so as to make the content of the book deep and broad. Each chapter is independent and has its own discussion, so this book is aimed at advanced developers. If this is the case, novices can also advance in this way. The small and big things are lost, and they have a detailed understanding.

audio and video

App Marketing by App Masters

@那儿先森: This series of podcasts focuses on App Store distribution and optimization. If you are an independent developer, or have the idea of ​​​​being an independent developer, it is recommended to follow or bookmark and find the parts you are interested in listening to.

Moyu Weekly

@探鱼周报#94 : The 94th issue of Moyu Weekly is here, let’s take a look at the summary of this issue:

  • Topic in this issue: Apple showcases new features for accessibility software
  • Learning of the week: Learn the front-end development process from Glarity
  • Content recommendation: recommend some recent excellent blog posts, covering: #file behavior changes, how to use @_exported attribute, In-App Purchase practice summary, etc.
  • Touch the fish: It’s cool to reconcile with yourself, accept yourself, and be yourself

Introduce

Restarted to update the “iOS Reliable Internal Recommendation Topic”, and sorted out the positions that have been clearly recruited recently for your reference

  • [Hangzhou] Taobao – terminal platform – iOS/Android/C++
  • [Shanghai] flomo – Recruiting iOS developers
  • [Beijing] TikTok – Recruiting iOS Developers
  • [Shenzhen/Guangzhou/Beijing/Sanya] Bytedance – Clipping – iOS / Android / PC / Web / C++ Engineer / Algorithm
  • [Shanghai/Shenzhen] SHEIN – iOS/Android Development Team Introduction

For specific information, please go to: https://www.yuque.com/ioalliance/article/bhutav to view (if you have any recruitment needs, please contact iTDriverr)

Follow us

We are “Old Driver Technology Weekly”, a technical public account that continues to pursue high-quality iOS content, welcome to pay attention.

Follow politely, pay attention to [Old Driver Technology Weekly], reply to “2021”, and receive 2017/2018/2019/2020 internal reference

It also supports RSS feeds: https://github.com/SwiftOldDriver/iOS-Weekly/releases.atom .

illustrate

? Indicates that a tool is needed, ? indicates an editor’s recommendation

Estimated reading time: ? Can be read quickly (1 – 10 mins); ? Moderate (10 – 20 mins); ? Slow (20+ mins)

This article is transferred from: https://github.com/SwiftOldDriver/iOS-Weekly/releases/tag/%23245
This site is only for collection, and the copyright belongs to the original author.