Contents

addSubgroup(_:to:)

Add the specified group to a parent group.

Declaration

func addSubgroup(_ subgroup: CNGroup, to group: CNGroup)

Parameters

  • subgroup:

    The subgroup to add.

  • group:

    The parent group in which to add subgroup.

Discussion

If you previously tried to remove subgroup from group in the same save request, calling this method undoes that removal. The last change you make is the one that takes effect.

See Also

Adding and removing subgroups