Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

[ASViewController] Add unit test or sample app that uses an ASVC without self.node, using .view manually. #2760

@appleguy

Description

@appleguy

Because Objective-C and Swift only support Single Inheritance, it's critical that ASViewController can be used as a BASE class in apps that have only partial usage of ASDK.

Most apps have some base VC class, like PIBaseViewController, so the only way to adopt ASVC is to make their base VC inherit from it. This means that it is crucial that ASVC work with:

-initWithCoder / nib
-manual / regular usage of the .view property

This should be possibly to achieve by simply gating any ASVC behaviors to do nothing at all if self.node == nil. Then we should make sure the documentation highlights that this is safe and supported.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions