This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Inside the main vc i put a function like this | |
//Function fetches data and calcs the total | |
func changeNavTitle() { | |
//[...] | |
// It does some stuff and then updates navigation label (you can change this to another label) | |
titleNav.title = "\(sum)\(currencySymbol)" | |
fetchedResultsController.changedContent = false | |
} | |
//Inside the other vc I call the function like this: |
NewerOlder