Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift 5 change message color of alert

Swift 5:
messageKey = "attributedMessage"
titleKey = "attributetTitle"
alert.setValue( NSAttributedString(
  string: "Your alert message text",
  attributes: [
    .foregroundColor : .red
  ]
), forKey: messageKey )
 
PREVIOUS NEXT
Tagged: #swift #change #message #color #alert
ADD COMMENT
Topic
Name
2+2 =