使用 Property Wrapper 为 Codable 解码设定默认值

本文介绍了一个使用 Swift Codable 解码时难以设置默认值问题,并利用 Property Wrapper 给出了一种相对优雅的解决方式,来在 key 不存在时或者解码失败时,为某个属性设置默认值。这为编解码系统提供了更好的稳定性和可扩展性。 Read more

How to display Vision bounding boxes

I’m using the Vision framework to run an object detection model on iOS but the predicted bounding boxes are not being drawn in the right place. Help! This is a very common problem and it happens because there are several different coordinate systems that you have to translate between. Read more

中东空间结构

几乎所有的中东帝国,几乎一下就会占据/席卷全部或大部的这个高原(如波斯、亚历山大等等等等,有很多中东帝国版图的主体都是这个大高原,以及大高原脚下的新月地带)。 Read more

ts-migrate

ts-migrate is a tool for helping migrate code to TypeScript. It takes a JavaScript, or a partial TypeScript, project in and gives a compiling TypeScript project out. ts-migrate is intended to accelerate the TypeScript migration process. Read more

State of the App: State Surfing

Note that the viewer is entirely generic. It accepts a String description for the action and a Data object holding the app’s state. Clicking a row sends the Data back to the app, which decodes it and resets its state to what it received. Read more

Nghia Tran

For Atlantis: + It’s an OSS – iOS framework that does “Method Swizzling” to all URLSession and URLConnection funcs. + Then sending to Proxyman app for inspecting by Bonjour Service 😆 + ✅ No messing with Proxy, Certificate Contribution is welcome: https://t.co/O3rPwApY Read more

Peter Steinberger

📣 New Blog Post! Your timeline defines your Twitter experience. Learn strategies how to pick your followers, how to hide what’s not interesting and how to mute negative people and keep Twitter fun for you! (More important than ever in 2020!) https://t.co/tazcH Read more