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
ISCIStringDeclaration
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) -> NSAttributedStringParameters
fontStyleThe fontStyle instance.
Return Value
AttributedString with applied fontStyle if needed.
-
Update a
UILabeltextDeclaration
Objective-C
- (void)updateUILabelText:(nonnull UILabel *)label;Swift
func updateUILabelText(_ label: UILabel)Parameters
labelThe UILabel to update.
-
Needed to be able to cast implementors to
ISCIStringonXamarin.iOSside, since it’s impossible there.Declaration
Objective-C
- (nonnull id<ISCIString>)toSciString;Swift
func to() -> any ISCIString
View on GitHub