User
class User : NSObject, NSCoding, NSSecureCoding
User type
-
This is name Variable
Declaration
Swift
let name: String -
This is a
UIImagethat is used to display profile pictureDeclaration
Swift
let profilePic: UIImage -
This is a
UIImagethat is used to disply background ImageDeclaration
Swift
let backgroundImage: UIImage -
Initialising user
Declaration
Swift
init(name: String, profilePic: UIImage, backgroundImage: UIImage)
-
This is used to generateDefaultUser for testing purpose
Declaration
Swift
static func generateDefaultUser() -> User
-
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
required convenience init(coder decoder: NSCoder) -
Encodes the receiver using a given archiver.
Declaration
Swift
func encode(with coder: NSCoder) -
Set up secure Coding
Declaration
Swift
static var supportsSecureCoding: Bool { get }
User Class Reference