Use instancetype for initWithFrame

Update method signature of “initWithFrame” to use instancetype instead
of id.