At Pandora all of our legacy iOS code is written in Objective-C (using ARC),
however all new classes/features/work will be written in Swift. In this
scenario, you are refactoring a legacy Objective-C file to be more readable.
There is a function createSoftButtonWithIdentifier
. It takes three
arguments: identifier
, text
and iconValue
-- all of which will only ever
be used together {id:@1, text: @"List", iconValue: @"list_icon"}
-- there
are no circumstances under which the arguments will be mixed up.
- (SoftButton *) createSoftButtonWithIdentifier:(NSNumber *)identifier