Victor S. Wang
user

Victor S. Wang

My Blog


Featured

WWDC

WWDC 2018 的流水账分享

Posted on .

又是一年的 WWDC,上次去还是在2016年,主场地在SF而不是San Jose。总体感觉这次的体验好了不少。其中一个原因是天气,很难想象就一个小时车程的两个地方天气怎么能差这么多,SF 的温度要低 5-10 度不说,还老是阴雨。San Jose 则感觉永远是大太阳,温度也很合适,简直完美。

早有耳闻说今年的很多新功能都被砍了或者推后了,要给性能和稳定性让路,发布会前的两周和一个 Cupertino 的工程师聊天,对方也说今年的 pre keynote 格外的「安静」。 现在大家也都知道了,新功能尽管不是太多,但我个人是非常满意的。别的不说,稳定性和性能的提升是感受的到的。我向来心大,都是 beta 版一出就直接给主力 iPhone 和 mbp 装的,尽管从来也没出过什么要命的问题,但没有一次这么稳定过,几乎感觉不出是大版本更新了,一切照常运行,搞的我只好特意开一下新功能(比如黑色主题)来确认我确实升级了…

Featured

Xcode

Build your own Xcode 8 Source Editor Extension

Posted on .

Since WWDC 2016, I was so excited about the announcement of the new Xcode source editor extension released in Xcode 8. Some of you may know I once wrote another Xcode plugin called VWInstantRun, an plugin made with some runtime hacks, a.k.a. old/unofficial way.

So naturally I’d love to port this plugin to the brand new Xcode source editor extension. I gave a try this weekend and I failed to implement InstantRun with the new approach. Basically there is two major limit to achieve it:

Featured

Swift

用 struct 和 enum 来构建你的整套 UI

Posted on .

之前分享过一次 LeeGo,有同学说不是很明白什么时候用,以及具体有什么好处。我觉得有必要再安利一次,好处往简单了说就一句话,可以让大家「脱离 UIView 做 UI 开发」。还写过另一篇文章讨论过为什么。其他的诸如声明式,高可用性UI,可服务器端远程更新等等一切好处其实都或多或少是源于这一条。

Featured

Swift

Put your whole UI into struct & enum with LeeGo

Posted on .

We all know that MVC pattern have some serious problems when dealing with a complex iOS project. Fortunately there are also a bunch of approaches that aim to fix the problems, most of them mainly address the Controller part, such as MVP, MVVM, MVSM or VIPER. But there is barely a thing which address the View part. Is that means we just run out of all the problems in the View part ?

Featured

Swift

Build UI without UIView

Posted on .

Encouraged by John Sundell’s great video at Scale, I’ve decided to write more about component driven UI, about why we should and how to do it (for iOS). In this post, I’ll try to focus on talking only the very basic idea.