SDK surface and search
Browse and search the distilled SDK: documented signatures, class and framework references, and cross-framework search.
sdksearch, sdkclass, sdkgroups, and full_docs are re-exported at top-level fastcocoa.
full_docs
def full_docs(
groups
):
Markdown overview of every group and operation in a mk_groups tree.
sdkops
def sdkops(
framework:str, # Apple framework name
head:str, # Swift method or init head name
entries:list[dict], # Distilled table entries for `head`
)->list[fastcocoa.surface.SdkOp]: # Documented `SdkOp` records with overload variants stacked in each docstring
Build SdkOp records for head's distilled table entries.
sdkclass
def sdkclass(
c, # Class object, instance, or Objective-C class name string
framework:str=None, # Framework name, needed only when `c` is a string not in any loaded table
)->fastcocoa.surface.SdkGroup: # Browsable class reference with methods, inits, and declared properties
Return one class as a browsable Markdown reference with signatures, abstracts, and declared properties.
sdkgroups
def sdkgroups(
framework:str
)->dict[str, fastcocoa.surface.SdkGroup]:
Return a whole framework as {framework: root_group} of attribute-chained SdkGroup objects; pass to full_docs for one Markdown reference.
sdksearch
def sdksearch(
pattern:str, # Regular expression (smart-case, like `rg`) matched against names, labels, parameter types, and doc text
frameworks=None, # Framework name(s) to search, extracting tables if needed; default searches every already-extracted framework
kind:str=None, # Filter: `'im'`, `'cm'`, `'init'`, `'protocol'`, `'enum'`, or `'property'`
)->fastcocoa.surface.SdkHits: # Matching `SdkHit` records as numbered previews
Search extracted SDK tables across methods, inits, protocols, enums, and properties.