decodeCGRect(forKey:)
Decodes and returns the Core Graphics rectangle structure associated with the specified key in the coder’s archive.
Declaration
func decodeCGRect(forKey key: String) -> CGRectParameters
- key:
The key that identifies the rectangle.
Return Value
The CGRect structure.
Discussion
Use this method to decode a rectangle that was previously encoded using the encode(_:forKey:) method.