iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCIString

@protocol ISCIString

Definies the common protocol for NSString and NSAttributedString to be used throughout SciChart.

  • Gets the character contents of this ISCIString

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull rawString;

    Swift

    var rawString: String { get }
  • Returns attributed string, and applies fontStyle to it if needed.

    Declaration

    Objective-C

    - (nonnull NSAttributedString *)attributedStringWithStyle:
        (nonnull SCIFontStyle *)fontStyle;

    Swift

    func attributedString(with fontStyle: SCIFontStyle) -> NSAttributedString

    Parameters

    fontStyle

    The fontStyle instance.

    Return Value

    AttributedString with applied fontStyle if needed.

  • Update a UILabel text

    Declaration

    Objective-C

    - (void)updateUILabelText:(nonnull UILabel *)label;

    Swift

    func updateUILabelText(_ label: UILabel)

    Parameters

    label

    The UILabel to update.

  • Needed to be able to cast implementors to ISCIString on Xamarin.iOS side, since it’s impossible there.

    Declaration

    Objective-C

    - (nonnull id<ISCIString>)toSciString;

    Swift

    func to() -> ISCIString