Intermediate Swift
Q83 / 100

What is Swift's AttributedString?

Correct! Well done.

Incorrect.

The correct answer is B) A Swift-native, type-safe attributed string supporting interpolation and custom attributes for rich text in SwiftUI and AppKit/UIKit

B

Correct Answer

A Swift-native, type-safe attributed string supporting interpolation and custom attributes for rich text in SwiftUI and AppKit/UIKit

Explanation

var str: AttributedString = "Hello"; str.font = .bold enables type-safe attribute access. Unlike NSAttributedString, attributes are accessed as typed properties.

Progress
83/100