一个透明背景实用程序,用于裁剪透明图像的背景,使其适合主屏幕小部件。灵感来自Scriptable 脚本
通过 SPM 将此依赖项添加到您的项目中
import Translucent
//Create instances
let bgLight = Wallpaper(/* User wallpaper in UIImage */)
let bgDark = Wallpaper(/* User wallpaper in UIImage */)
//And get backgrounds for widgets
bgLight.widgetBackground(for: /* the position */)