Ignoring internal / private API classes

Hello - I am wondering if doing something like the following would keep an app out of the app store. I need to ignore Apple internal classes that are in the view hierarchy:

(subview is the current view as a traverse the view tree)

let className = String(describing: type(of:subview.self))

if !className.starts(with: "_") {

     /// do something here       

}

Thanks!

I need to ignore Apple internal classes that are in the view hierarchy:

What is the purpose ?

IMO, that would be pretty risky as you don't know which classes are called, hence you could trigger unwanted action.

And if this shows in review, I do think you have a risk of rejection.

Guidelin 4.4.2 is about extensions, but give a hint of what is checked:

4.4.2ASR & NR Safari extensions must run on the current version of Safari on the relevant Apple operating system. They may not interfere with System or Safari UI elements and must never include malicious or misleading content or code. Violating this rule will lead to removal from the Apple Developer Program.

Ignoring internal / private API classes
 
 
Q