From 5a3e9aa95a7e39095dfe66d05e662bd34b0e971b Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Wed, 14 Apr 2021 16:29:14 +0200 Subject: [PATCH 1/2] Initialize Aztec view with zero size --- packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift b/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift index 946f2bb05e9681..446d4b15cfcb70 100644 --- a/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift +++ b/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift @@ -135,6 +135,7 @@ class RCTAztecView: Aztec.TextView { textContainerInset = .zero contentInset = .zero textContainer.lineFragmentPadding = 0 + frame.size = CGSize(width: 0, height: 0); addPlaceholder() textDragInteraction?.isEnabled = false storage.htmlConverter.characterToReplaceLastEmptyLine = Character(.zeroWidthSpace) From 673c23e7e6f90566dcd7f537baa5ebbda13c703c Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Tue, 20 Apr 2021 15:28:35 +0200 Subject: [PATCH 2/2] Update packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift Co-authored-by: Paul Von Schrottky --- packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift b/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift index 446d4b15cfcb70..c87316600177ee 100644 --- a/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift +++ b/packages/react-native-aztec/ios/RNTAztecView/RCTAztecView.swift @@ -135,7 +135,7 @@ class RCTAztecView: Aztec.TextView { textContainerInset = .zero contentInset = .zero textContainer.lineFragmentPadding = 0 - frame.size = CGSize(width: 0, height: 0); + frame.size = .zero addPlaceholder() textDragInteraction?.isEnabled = false storage.htmlConverter.characterToReplaceLastEmptyLine = Character(.zeroWidthSpace)