How make radio buttons in swift 3

后端 未结 4 1819
闹比i
闹比i 2021-01-23 00:03

I am creating a Swift iOS app in which I have to show a Radio Buttons which accepts Horizontal and Vertical ways. I have found one library at GitHub which looks the solution of

4条回答
  •  星月不相逢
    2021-01-23 00:47

    You can add multiple buttons with-in UIStackView, Then set the axis property of UIStackView to horizontal or vertical as per your requirement. To make the Radio button set the image of button & give title, then set the left title inset to make some space between button image & title.

提交回复
热议问题