Christian Sousa
05/14/2020, 11:53 AMsetTitleTextAttributes(attributes = mapOf(UIColor.whiteColor to "foregroundColor"), forState = UIControlStateSelected)
foregroundColor , backgroundColor and textColor but none worked.Artyom Degtyarev [JB]
05/14/2020, 1:28 PMChristian Sousa
05/14/2020, 1:42 PMmapOf the other way around. It should be:
setTitleTextAttributes(attributes = mapOf("foregroundColor" to UIColor.whiteColor), forState = UIControlStateSelected)