Skip to content

Commit

Permalink
Add a comment on VisitProposalExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
olivaresf committed Nov 16, 2023
1 parent cb3ee83 commit 00de565
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public extension VisitProposal {
/// A VisitProposal to `https://example.com/recipes/` will have `proposal.viewController == "recipes"`
///
/// A default value is provided in case the view controller property is missing from the configuration file. This will route the default `VisitableViewController`.
///
/// For convenience, conform `ViewController`s to `PathConfigurationIdentifiable` to couple the identifier with a view controller.
var viewController: String {
if let viewController = properties["view-controller"] as? String {
return viewController
Expand Down

0 comments on commit 00de565

Please sign in to comment.