Skip to content

Commit 3cc0404

Browse files
committed
Add "Expand ivar records" option to RuntimeObjectDetail
1 parent a82b67d commit 3cc0404

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

ClassDumpRuntime

Submodule ClassDumpRuntime updated 39 files

HeaderViewer/RuntimeObjectDetail.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ struct RuntimeObjectDetail: View {
2929
@State private var stripDuplicates: Bool = true
3030
@State private var stripSynthesized: Bool = true
3131
@State private var addSymbolImageComments: Bool = false
32+
@State private var expandIvarRecordTypes: Bool = false
3233

3334
@AppStorage("code_font_size") private var fontSize: Int = Self.defaultFontSize
3435

@@ -41,6 +42,7 @@ struct RuntimeObjectDetail: View {
4142
options.stripCtorMethod = true
4243
options.stripDtorMethod = true
4344
options.addSymbolImageComments = addSymbolImageComments
45+
options.expandIvarRecordTypes = expandIvarRecordTypes
4446
return options
4547
}
4648

@@ -78,6 +80,7 @@ struct RuntimeObjectDetail: View {
7880
Toggle("Strip duplicates", isOn: $stripDuplicates)
7981
Toggle("Strip synthesized", isOn: $stripSynthesized)
8082
Toggle("Add symbol comments", isOn: $addSymbolImageComments)
83+
Toggle("Expand ivar records", isOn: $expandIvarRecordTypes)
8184
} label: {
8285
Label("Generation options", systemImage: "ellipsis.curlybraces")
8386
}

0 commit comments

Comments
 (0)