短评 · ·

X 归档 2023-07-21

3 条动态 · 图 1 · 视频 2
if myString.count > 0 {
  // `myString` isn't empty
}


This code seems pretty reasonable, doesn't it? 😌

But it actually hides quite a serious issue!

Can you guess what that issue is? 🤨
if myString.count > 0 {
  // `myString` 不为空
}


这段代码看起来相当合理,对吧?😌

但它其实隐藏着一个相当严重的问题!

你能猜到是什么问题吗?🤨
Here I show you some of the magic behind this effect in vanilla #threejs. It looks like post-processing, but it's a simple plane with a custom shader, taking up 100% of the screen. I learned this in Bruno's course #threejsJourney and with @MaximeHeckel's blog.
这里我用原生 #threejs 展示这个效果背后的一些魔法。它看起来像后处理,其实只是一个铺满整个屏幕、带自定义 shader 的简单平面。这是我在 Bruno 的课程 #threejsJourney 和 @MaximeHeckel 的博客里学到的。
It's not limited to SwiftUI. The new #Preview macro in Xcode 15 also lets you preview views developed in UIKit. https://www.appcoda.com/swiftui-preview-macro/
这并不局限于 SwiftUI。Xcode 15 的新 #Preview 宏也支持预览用 UIKit 开发的视图。
@simonng 的配图 1/1