CATextLayerにて文字を描画するとぼやけてしまう対応。
自分用備忘録として残しておく。
CATextLayer.swift
let textLayer = CATextLayer()
textLayer.contentsScale = (NSScreen.main()?.backingScaleFactor)!
More than 5 years have passed since last update.
CATextLayerにて文字を描画するとぼやけてしまう対応。
自分用備忘録として残しておく。
let textLayer = CATextLayer()
textLayer.contentsScale = (NSScreen.main()?.backingScaleFactor)!
Register as a new user and use Qiita more conveniently