From c55d308bb6665b5450f1ee31b244bf1ace2ca974 Mon Sep 17 00:00:00 2001 From: Kevin Mullins Date: Thu, 17 Jun 2021 14:22:41 -0500 Subject: [PATCH] Update README.md Improved documentation. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae70a8b..4a7f484 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,9 @@ Since, the **Swift Package Manager** is integrated with Xcode 11 (and greater), ## Using SwiftletRadioButtonPicker -The `SwiftletRadioButtonPicker` works best when presenting a very limited number of options to the user. For example: selecting Male or Female. Generally this should be used for six or less options. For more options, you'll be better suited using one of the standard, built-in SwiftUI Picker views. +The `SwiftletRadioButtonPicker` works best when presenting a very limited number of options to the user. For example: selecting **Male** or **Female**. + +Generally this Picker should only be used for six or less options on platforms like iOS. When the user need to select from a greater number of options, you'll be better suited using one of the standard, built-in SwiftUI Picker views. ### Example @@ -39,7 +41,9 @@ Which would display a view like the following: ![](Documentation/Images/Picker01.png) -Optionally, you can feed any **Enum** to the `radioButtons` function and the Picker will automatically generate a list of Radio Buttons from the **Enum**. +## Generating from an Enum + +Optionally, you can feed any **Enum** that has a raw value and conforms to `CaseIterable, Identifiable` to the `radioButtons` function and the Picker will automatically generate a list of Radio Buttons from the **Enum**. ### Example