Skip to content

Commit e556bc7

Browse files
committed
change indent style name
- use varied
1 parent 7125615 commit e556bc7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Aztec/Classes/TextKit/LayoutManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private extension LayoutManager {
240240

241241
var indentLevel: Int?
242242
// Determine indentation level, if needed. The indentation level is only determined for the standard list style
243-
if listIndentStyle == .standard {
243+
if listIndentStyle == .varied {
244244
// only get the width of the first level once
245245
if firstLevelWidth == nil {
246246
firstLevelWidth = paragraphStyle.indentToFirst(TextList.self)

Aztec/Classes/TextKit/ParagraphProperty/TextList.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ open class TextList: ParagraphProperty {
5757
public enum IndentStyle: Int {
5858
/// A default single bullet style for each indentation level
5959
case `default`
60-
/// The standard bullet styles for each indentation level (i.e., HTML style)
61-
case standard
60+
/// Use a varied (distinct) bullet style for each indentation level (i.e., WYSIWYG style)
61+
case varied
6262
}
6363

6464
public let reversed: Bool

Example/Example/EditorDemoController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class EditorDemoController: UIViewController {
174174
view.addSubview(separatorView)
175175

176176
editorView.richTextView.textContainer.lineFragmentPadding = 0
177-
editorView.richTextView.listIndentStyle = .standard
177+
editorView.richTextView.listIndentStyle = .varied
178178
// color setup
179179
if #available(iOS 13.0, *) {
180180
view.backgroundColor = UIColor.systemBackground

0 commit comments

Comments
 (0)