TKModeHelper

public class TKModeHelper : NSObject

Undocumented

  • Does a special modal intersection, which considers hierarchy of modes

    This intersects if there’s a mode in secondary that’s a sub-mode of any mode in primary. E.g., me_car-s_GOG is a submode of me_car-s, but not of me_car.

    Declaration

    Swift

    @objc(modes:contain:)
    public static func modesContain(_ primary: Set<String>, _ secondary: Set<String>) -> Bool

    Parameters

    primary

    Modes that can be shorter

    secondary

    Modes that can be longer

    Return Value

    If any mode in secondary is in primary or a submode of any mode in primary