if the swift version is 4.1, when included this with pod,it will need to
change func menuTapped to @objc func menuTapped,
change func backgroundTapped to @objc func backgroundTapped,
change NSFontAttributeName to NSAttributedStringKey.font in func calculateTitleSizeWith
if the swift version is 4.1, when included this with pod,it will need to change func menuTapped to @objc func menuTapped,
change func backgroundTapped to @objc func backgroundTapped, change NSFontAttributeName to NSAttributedStringKey.font in func calculateTitleSizeWith