From f6e49f7efe6908a4ba9bd14275e4109c41ef3bd2 Mon Sep 17 00:00:00 2001 From: Kaixin L Date: Tue, 1 Jun 2021 18:40:32 +0800 Subject: [PATCH] Streamlined some SwiftUI related code --- LTMorphingLabel/SwiftUI/MorphingText.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LTMorphingLabel/SwiftUI/MorphingText.swift b/LTMorphingLabel/SwiftUI/MorphingText.swift index fbbe035..5c3938e 100644 --- a/LTMorphingLabel/SwiftUI/MorphingText.swift +++ b/LTMorphingLabel/SwiftUI/MorphingText.swift @@ -35,10 +35,7 @@ public struct MorphingText: UIViewRepresentable { } public func makeUIView(context: Context) -> UIViewType { - let label = LTMorphingLabel(frame: CGRect(origin: .zero, size: CGSize(width: 200, height: 50))) - label.textAlignment = .center - label.textColor = UIColor.white - return label + LTMorphingLabel() } public func updateUIView(_ uiView: UIViewType, context: Context) {