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
Comments
Post a Comment