You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3f18ada
Browse filesBrowse the repository at this point in the historyBrowse files
/// How Markdown syntax markers (e.g. `**`, `*`, `$`) are visualized when
@@ -415,25 +465,13 @@ public struct DragSelectionPolicy: Sendable {
415
465
publicstaticlet`default`=DragSelectionPolicy()
416
466
}
417
467
418
-
// MARK: - Content insets
468
+
// MARK: - Safe-area insets
419
469
420
-
/// Inset (in points) applied to the editor's enclosing scroll view's content
421
-
/// area on each edge.
422
-
///
423
-
/// Use this when the editor is hosted inside a layout that needs reserved
424
-
/// space at one of the edges — for example, a translucent toolbar or header
425
-
/// bar that the document should scroll *underneath*. The default is zero on
426
-
/// every edge so the editor fills its container exactly; embedders that
427
-
/// want padding opt in explicitly.
428
-
publicstructContentInsets:Sendable{
429
-
/// Top inset in points. Common use: reserving space for a translucent
430
-
/// title / toolbar bar.
470
+
/// Reserves space on the scroll view for system overlays (e.g. a translucent toolbar to scroll underneath). Maps to `NSScrollView.contentInsets`; scroll bar follows the inset.
471
+
publicstructSafeAreaInsets:Sendable{
431
472
publicvartop:CGFloat
432
-
/// Leading (left in NSEdgeInsets) inset in points.
433
473
publicvarleading:CGFloat
434
-
/// Trailing (right in NSEdgeInsets) inset in points.
435
474
publicvartrailing:CGFloat
436
-
/// Bottom inset in points.
437
475
publicvarbottom:CGFloat
438
476
439
477
publicinit(
@@ -448,5 +486,5 @@ public struct ContentInsets: Sendable {
0 commit comments