Add bottom line to view in SwiftUI / Swift / Objective-C / Xamarin

前端 未结 22 2373
自闭症患者
自闭症患者 2020-11-27 09:19

I would like to keep the border at the bottom part only in UITextField. But I don\'t know how we can keep it on the bottom side.

Can you please advise m

22条回答
  •  悲哀的现实
    2020-11-27 10:02

    SwiftUI

    in SwiftUI, there is a View called Divider that is perfectly matched for this. You can add it below any view by embedding them into a simple VStack:

    VStack {
        Text("This could be any View")
        Divider()
    }
    

提交回复
热议问题