tip calculator for CodePath iOS-Swift observer group