@appshuttle.io/turing
Version:
Code Generation Library used in Shuttle
32 lines (22 loc) • 692 B
JavaScript
class IBActionTemplates {
constructor() {
/*
IBAction STRUCTURE START
*/
// IBAction Structure Defaults
// IBAction Structure Holders
this.FUNCTION_NAME_HOLDER = '%functionName%'
this.SEGUE_ID_HOLDER = '%segueId%'
this.getIBActionSegueStructure = function() {
return `
@IBAction func `+ this.FUNCTION_NAME_HOLDER +`(_ sender: Any) {
self.performSegue(withIdentifier: "` + this.SEGUE_ID_HOLDER + `", sender: sender)
}
`
}
/*
VIEWCONTROLLER STRUCTURE END
*/
}
}
module.exports = IBActionTemplates