原文链接:https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9f782
作者: Chris Lattner
import UIKit | |
private var imp = pthread_rwlock_t() | |
func wlock(_ time: Int) { | |
pthread_rwlock_wrlock(&imp) | |
print("[\(time)]wlock") | |
} | |
func rlock(_ time: Int) { |
import UIKit | |
import PlaygroundSupport | |
let paragraph = NSMutableParagraphStyle() | |
paragraph.lineSpacing = 20 | |
// the issue won't report with PingFangSC-Regular font | |
//let font = UIFont(name: "PingFangSC-Regular", size: 18)! | |
// setting to ".SFUIText" would lead to reproductive | |
let font = UIFont(name: ".SFUIText", size: 18)! |