Posts

Showing posts from December, 2021

UIAlertController inside alert shows error iOS swift

 Solution:   If you had multiple  UIAlertController then it will shows error.Then follow the below step. Add extra  UIKit that will be for additional alert.                          let  alertReplace =  UIAlertController ( title :  AppTitle ,  message :  messageToshow ,  preferredStyle : . alert )                          let  okReplaceAction = UIKit. UIAlertAction ( title :  "YES" ,  style : UIKit. UIAlertAction . Style . dest ructive ) {                             UIAlertAction  in // add the action here                         }                          let  cancelReplaceAction = UIKit. UIAlertAction ( title :  "NO" ,  style : UIKit. UIAlertAction . Style . canc el ) {                             UIAlertAction  in                                                      }                         alertReplace. addAction ( okReplaceAction)                         alertReplace. addAction ( cancelReplaceAction)                         view. present ( alertReplace,  anim

Tint color not set for asset images

Image
 Solution: You have to select the asset image and then change the settings as like above Render as -> Default to Render as -> Template image. After that you have to set the image tint color will works fine.