Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Commit c73a960

Browse files
Fixed TextViewLayout crash in playground
1 parent 8bc34a9 commit c73a960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LayoutKit.playground/Pages/TextView.xcplaygroundpage/Contents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let attributedText = Text.attributed(attributedString1)
1717

1818
let textContainerInset = UIEdgeInsets(top: 2, left: 3, bottom: 4, right: 5)
1919

20-
let textViewLayout = TextViewLayout(text: attributedText, layoutMargins: textContainerInset)
20+
let textViewLayout = TextViewLayout(text: attributedText, textContainerInset: textContainerInset)
2121
let arrangement = textViewLayout.arrangement()
2222
arrangement.makeViews(in: rootView)
2323

LayoutKit.playground/contents.xcplayground

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<playground version='6.0' target-platform='ios'>
2+
<playground version='6.0' target-platform='ios' display-mode='raw'>
33
<pages>
44
<page name='Introduction'/>
55
<page name='Animation'/>

0 commit comments

Comments
 (0)