Posts

Showing posts from October, 2019

[adapting iOS 13] copy UIView 'thoroughly'

viewOriginal = UIView what you want to copy thoroughly (e.g. from storyboard) let viewArchived  =   try ! NSKeyedArchiver . archivedData (withRootObject: viewOriginal ,  requiringSecureCoding: false ) return try ! NSKeyedUnarchiver . unarchiveTopLevelObjectWithData ( viewArchived ) as ! UIView

[adapting iOS 13] AddInstanceForFactory: No factory registered for id ~

? [plugin] AddInstanceForFactory: No factory registered for id ~ -> (under checking now ~)

[adapting iOS 13] Unable to simultaneously satisfy constraints

? slide(drawer) menu view not working(not move) on iOS 13 ->  (programmatically)    slideView . translatesAutoresizingMaskIntoConstraints = true (before opening)     <action - animate slide/move>    slideView . translatesAutoresizingMaskIntoConstraints  =  false (after closing) => working ! ? constraints error " Unable to simultaneously satisfy constraints . ~" -> (storyboard)    set space constraint Priority 999 (from 1000) => slide worked & error not displayed