1

I was wondering if it is at all possible to use constants defined in, say, a Swift source file named Constants.swift in the "Identifier" field for a Storyboard Segue in Xcode's Interface Builder. For example, if I have a constant declared like this:

let SHOW_PHOTOS_SCENE_SEGUE_ID = "showPhotos"

can I use something like $SHOW_PHOTOS_SCENE_SEGUE_ID in the "Identifier" field of the Attributes Inspector for the Storyboard Segue? I would like to do this to prevent errors due to misspelling the ID in either source code or in the storyboard.

0 Answers0