前あったのはこういうケースでした。 if widgetFamily == WidgetFamily.systemSmall { Link(destination: Self.endpoint(APIKey: entry.configuration.APIKey, deviceID: entry.configuration.deviceID )) { Label("", systemImage: "lock.fill") .frame(minWidth: 0, maxWidth: .infinity) .font(.headline) .padding(.trailing, -8) .padding(.all, 16) .background(Color.gray.opacity(0.2)) .clipShape(Capsule()) .offset(CGSize(width: 0, height: 6)) } } else { Link(destination: Self.endpoint(APIKey: entry.configuration.APIKey, deviceID: entry.configuration.deviceID) { Label("Unlock", systemImage: "lock.open.fill") .frame(minWidth: 0, maxWidth: .infinity) .font(.headline) .padding(.all, 16) .padding(.all, 0) .background(Color.gray.opacity(0.2)) .clipShape(Capsule()) .offset(CGSize(width: 0, height: 6)) } }