I found here that performSelector: withObject: is not available in swift, Can someone help I am trying to convert app written in Obj C to Swift, any of founded answers didn't help. This is the code
[newTopViewController performSelector:@selector(setSalesDocumentType:)withObject:@(menuItem.salesDocumentType)];
Tried every answer here Alternative to performSelector in Swift? , nothing helps. NSTimer doesn't have property withObject:, main thread doesn't help too.