Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MyLibrary/Sources/ScheduleFeature/Detail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public struct ScheduleDetail {
return .none
}
}
ifLet(\.$destination, action: \.destination)
.ifLet(\.$destination, action: \.destination)
}
}

Expand Down
8 changes: 6 additions & 2 deletions MyLibrary/Sources/trySwiftFeature/Profile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ public struct Profile {
return .none
}
}
ifLet(\.$destination, action: \.destination)
.ifLet(\.$destination, action: \.destination)
}
}

@ViewAction(for: Profile.self)
public struct ProfileView: View {

public var store: StoreOf<Profile>
@Bindable public var store: StoreOf<Profile>

public init(store: StoreOf<Profile>) {
self.store = store
Expand Down Expand Up @@ -88,5 +88,9 @@ public struct ProfileView: View {
}
.navigationTitle(store.organizer.name)
}
.sheet(item: $store.scope(state: \.destination?.safari, action: \.destination.safari)) { sheetStore in
SafariViewRepresentation(url: sheetStore.url)
.ignoresSafeArea()
}
}
}