实战需求
SwiftUI Widget 小组件之图片自定义对齐避免小缝隙
本文价值与收获
看完本文后,您将能够作出下面的界面
看完本文您将掌握的技能
Color.clear.overlay()
alignment: .bottomTrailing
基础知识
SwiftUI 提供的对齐方式
/// A guide marking the center of the view.
public static let center: Alignment
/// A guide marking the leading edge of the view.
public static let leading: Alignment
/// A guide marking the trailing edge of the view.
public static let trailing: Alignment
/// A guide marking the top edge of the view.
public static let top: Alignment
/// A guide marking the bottom edge of the view.
public static let bottom: Alignment
/// A guide marking the top and lead