Make the leading and trailing edges of the view fit within the view SwiftUI 5.1 Post author:Gerard Grundy Post published:January 28, 2020 Post category:Swift Programming Post comments:0 Comments If your textview isn’t fitting in the view how you think it should try this code out. It allows you to customise the padding to your view. .padding(EdgeInsets(top: 0, leading: 10, bottom: 0, trailing: 10)) 1 .padding(EdgeInsets(top: 0, leading: 10, bottom: 0, trailing: 10)) Tags: Learn Swift Programming|Swift Programming|Swift Tutorials, swift5.1, Swiftui Read more articles Previous PostMake a Text view have two lines SwiftUI 5.1Next PostHide back button in NavigationView SwiftUI 5.1 You Might Also Like Add a background to fill the full view SwiftUI 5.1 January 28, 2020 Make a shadow of your text SwiftUI 5.1 January 28, 2020 How do you convert a String to Int? Swift 5.1 January 18, 2020 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional)