Skip to content

Commit 54c85c0

Browse files
committed
Fix Crash
1 parent f2b49b1 commit 54c85c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

WidgetDemo/WidgetDemo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct PizzaDeliveryActivityWidget: Widget {
7474
DynamicIsland {
7575
DynamicIslandExpandedRegion(.leading) {
7676
Label("\(context.attributes.numberOfPizzas) Pizza", systemImage: "bag")
77-
.font(.title2)
77+
.font(.title3)
7878
}
7979
DynamicIslandExpandedRegion(.trailing) {
8080
Label {
@@ -97,7 +97,7 @@ struct PizzaDeliveryActivityWidget: Widget {
9797
DynamicIslandExpandedRegion(.bottom) {
9898
// Deep Linking
9999
HStack {
100-
Link(destination: URL(string: "pizza://contact:TIM")!) {
100+
Link(destination: URL(string: "pizza://contact+TIM")!) {
101101
Label("Contact driver", systemImage: "phone.circle.fill")
102102
.font(.caption)
103103
.padding()

iOS16-Live-Activities/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct ContentView: View {
4343
.onOpenURL(perform: { url in
4444
withAnimation {
4545
if url.absoluteString.contains("contact") {
46-
driver = url.absoluteString.replacingOccurrences(of: "pizza://contact:", with: "")
46+
driver = url.absoluteString.replacingOccurrences(of: "pizza://contact+", with: "")
4747
showContactAction = true
4848
} else if url.absoluteString.contains("cancelOrder") {
4949
stopDeliveryPizza()

0 commit comments

Comments
 (0)