1,612 questions
0
votes
1
answer
81
views
Segmented control has design bugs in Navigation Bar with Liquid Glass
When I put a SwifUI segmented control in a navigation bar, liquid glass seems to be making it render incorrectly. The capsule has vertical clipping and the sides show layered backgrounds.
Here is my ...
1
vote
1
answer
69
views
Picker styles and dismissing keyboards
I have been looking at how to explicitly dismiss a keyboard while allowing a picker on the same form to actually work. There are already various solutions on here that solve my issue, and I have a ...
0
votes
1
answer
93
views
Visibility of TextField label compared to Picker or Toggle in SwiftUI
If I place a Picker or a Toggle in a SwiftUI Form, the associated label is always visible:
But for a TextField, the label is only shown while the field is empty:
And as soon as I start to fill in ...
0
votes
0
answers
34
views
How to increase height only of selected item in WheelPicker [duplicate]
I cannot set the height of selected item in WheelPicker in iOS
This is the code:
Picker("Second Digit", selection: $secondDigit) {
ForEach(0...9, id: \.self) { digit in
Text(&...
-4
votes
1
answer
159
views
Maui picker not reset properly on iOS
The issue
I have a picker in my MAUI application, with its ItemSource and SelectedItem bound to properties in the page's ViewModel. I also have a button to reset the picker, by setting the property ...
-1
votes
1
answer
95
views
Why does ForEach update for DisclosureGroup and not my Picker?
I am trying to update a state variable that is an array of Strings that I get back from an API call. I want to display this array in a Picker. However, my Picker is completely blank. I know my api is ...
0
votes
1
answer
254
views
MacOS, SwiftUI - styling Picker button (menu type)
Is it possible to style a Picker of .pickerStyle(.menu) ? I want to change color of up-down arrows on the picker button and background color behind them.
0
votes
1
answer
120
views
Picker hit test area in SwiftUI on iOS
I have a following code with Picker in SwiftUI on iOS:
enum Something: String, CaseIterable {
case one
case two
case three
}
struct ContentView: View {
@State private var something: ...
1
vote
0
answers
49
views
Modfiy the text color of the picker items on Android
Is there an easier way to change the text color of the items in a Picker on Android other than implementing your own AlertDialog or custom MAUI picker? I'm talking about the picker and no other ...
0
votes
1
answer
65
views
I need a picker in .NET MAUI to initialize to the current value of a term
I have a page that displays a list of terms. Each term has a status. See models:
public class Term : INotifyPropertyChanged
{
[PrimaryKey, AutoIncrement]
public int Term_ID { get; set; }
...
0
votes
0
answers
78
views
SelectedItem is always set to null in dotnet maui picker
In my dotnet maui picker, I am trying to have a picker with the SelectedItem already filled from my backend. However, the picker always sets it's SelectedId at -1, completely ignoring my backend.
Here ...
2
votes
2
answers
296
views
React Native RNPickerSelect doesn't open on iOS
All works fine on android but in iOS my picker doesn't open.
I have tried to change style, remove style, but nothing works.
My picker :
<View style={[styles.pickerWrapper, styles.marge]}>
...
0
votes
1
answer
76
views
Picker selection not updating the view
In my app there is a view with several pickers. If I select a value with one of them ($limits[index].from), a value that depends on it should be updated. Unfortunately, this does not work. Only when I ...
0
votes
1
answer
104
views
Picker selection, ForEach an binding property
I'm trying to make a view with some pickers. The selections should be connected to a property of an binding array:
@Binding var limits: [Limit]
var body: some View {
ForEach(limits) { limit in
...
1
vote
1
answer
124
views
How can I reduce excess space on the left in react-native-picker/picker?
Question
How can I reduce excess space on the left in react-native-picker/picker?
Background
I want to use scrolling pickers in multiple places on a screen. These pickers will need to be efficient in ...
-1
votes
1
answer
96
views
How to update fontsize of pickers item in .net maui
I want to update picker item font size in .net maui for both android and ios.
Please share solution. It will be very helpful
Thanks in advance
0
votes
0
answers
49
views
not run image_picker flutter
When I use the function " picker.pickImage(source: ImageSource.camera)", the following message appears in the console. I tried many ways that are in GitHub but none of them solved the ...
1
vote
1
answer
199
views
Adding a Picker to change data in Observable class
I am trying to change a value that is stored in class through a custom structure using a picker. I am trying to make an app that lists course name and grade. The picker is in a HStack with a name. I ...
1
vote
0
answers
38
views
ion-picker does not display columns in ionic 7.2.0
I'm using ion-picker in my ionic v7.2.0 project but it doesn't show the columns, only an empty gray rectangle is shown in my page, so I guess it's not consuming the columns of my ts.
I have already ...
1
vote
1
answer
341
views
How add a segmented picker under the title in a NavigationBar on SwiftUI?
I'm trying to add a segmented picker in the NavigationBar under the title with SwiftUI.
I've tried with the toolbar, but it was show on the top and not under the title.
How can I achieve the result ...
0
votes
1
answer
50
views
Why SwiftUI Picker does not change value?
I have this simple code:
import SwiftUI
struct ExampleView: View {
@State private var selectedTab: String = "tab1"
var body: some View {
VStack {
Picker("...
-1
votes
1
answer
59
views
SwiftUI: Stepper interfere with Binding variable
WHAT I NEED: I've a stepper to set a value. This value is completely different if user is using the app with different units.
WHAT'S THE PROBLEM: While I just play with the unit picker in the settings ...
0
votes
1
answer
107
views
Type ‘any Target’ cannot conform to ‘Hashable’ in SwiftUI Picker
I’m working on a SwiftUI project where I have a Target protocol that conforms to Identifiable and Hashable. I have two structs, Silhouette and IPSC, that conform to this protocol. I want to display a ...
0
votes
1
answer
184
views
SwiftUI Segmented Control Picker
I'm trying to implement a segmented picker with an additional behavior where tapping the selected option again deselects it. However, this code doesn't seem to function as intended.
Picker(""...
0
votes
1
answer
100
views
Why is my picker displaying the array reversed?
I'm learning Swift and I came across this problem. I made an array for US states, and when I pass it in the picker for some reason it just reverses it. I solved it temporarily by reversing the states ...
-1
votes
1
answer
63
views
View design not showing inside Picker in SwiftUI
I need to show 2 struct views in picker in tag 0 i need to show TaskHistoryView(activities: activities) why this is not showing inside tag 0 if i show it in separate view then showing but not showing ...
0
votes
1
answer
151
views
How to set a SceneStorage property initial value in SwiftUI
I have a SwiftUI view with a Picker that lists a set of objects, whose id are of type UUIDs. For the purpose of reducing the example to the minimum code, I've represented the whole object as UUIDs. ...
1
vote
2
answers
465
views
Is it possible to change the color of label inside Picker?
I have an app and I want to implement an option to change the app's accent color but only with a certain selection of colors and I want them inside of a picker with a label with a circle of each color ...
-1
votes
1
answer
143
views
Custom Picker ID
I'm trying to setup a picker with dynamic contents and a custom ID, but i'm running into issues getting this working. I'm probably going about this totally wrong.
I'm getting information from a my ...
0
votes
2
answers
244
views
Maui Picker in a CollectionView Item, Can't bind SelectedIndexChanged to the collection item object
I have cart items in a Grid inside a DataTemplate for showing CollectionView items.
In the cart I have Add/Remove buttons with Commands that route to the CartViewModel and pass a CommandParameter of ...
0
votes
1
answer
200
views
SwiftUI Picker Selection Error and Search Field Causing List Items to Disappear
In this code, I'm experiencing two issues while selecting items in a Picker:
This error occurs when selecting an item in the first Picker. The selection seems to be invalid, and I receive the above ...
1
vote
2
answers
509
views
How to remove icon from Picker label?
I want to achieve these menus with a picker. The selected option only shows the text "Heart Rate" for example. And "<140 BPM" without the sf symbol.
And currently I have 2 ...
-1
votes
1
answer
128
views
How to create a dynamic Picker based on imported data in SwiftUI
I am importing data from an API, which means I cannot use an enum or a list for my picker. This took me a bit to sort out and I did not see any good answers for it, so here is my solution.
The .task{} ...
1
vote
1
answer
615
views
.Net MAUI Capture Cancel action from picker control
So, I'm upgrading a project from Xamarin to MAUI. Most has been ok, overall minor in most parts, but stuck on a picker control.
I am good on all aspects of populating a list, binding that to the ...
1
vote
0
answers
108
views
Cyclic Picker in React native?
I'm goign crazy trying to find a picker that can be cyclic, e.g. if we have a time from 1-12, once it goes past 12 it goes back to 1. I've found logical ways to do it but they're all clunky, There is ...
1
vote
1
answer
370
views
In .net MAUI, which control to select a number for small screen?
I'm using .Net MAUI to build an app for watches (wear os and IOS): small screens.
I'd like the user to select a number between 0 and 60.
I've tried a picker, but the layout is horrible on small screen ...
1
vote
0
answers
168
views
ngx-color-picker problem with scrolling pages?
i'm getting a problem with ngx-color-picker.
In my project i have a list of element into a standard table using @for.
In each row i have a column with a button where i can change the color of that row,...
1
vote
1
answer
253
views
How to get pickerStyle(.navigationLink) to scroll automatically to the selected value
I wish to use a picker with pickerStyle(.navigationLink) to select a value.
The list of values is long and so I would expect the picker list on the new screen to scroll automatically to ensure the ...
0
votes
1
answer
239
views
MAUI: unexpected height of Picker control
I've encountered with strange displaying of Picker control (MAUI 8.0) on Android when I trying to arrange line by VerticalOptions="Start":
At a glance is seems like this control has ...
0
votes
0
answers
162
views
Using SwiftUI Picker control to select data from a @Query result
When entering data for a medication in my Health app I want the user to select the doctor prescribing the medication! I have a table of doctors that I can @Query to build an array. How do I allow ...
0
votes
0
answers
176
views
Query SwiftUI with SwiftData, change picker dynamically
I am trying to create two Pickers, one dependent on the other.
Both come from two SwiftData models Ruta and Parada.
But I don't manage to paint the second one, if I try to binding the variable Parada, ...
1
vote
1
answer
492
views
SwiftUI Picker: Run code only when user changes the state of the picker
In my SwiftUI app on macOS Sonoma I am using several Picker views. Here is one example:
Picker("Berichtsart", selection: $report.reportType) {
ForEach(ReportType.allCases) { option in
...
1
vote
1
answer
99
views
Implement a preview button within SwiftUI Picker
I would like to create a Picker within my app's settings which allows the user to select their notification tone. Specifically, I want the user to be able to preview this tone before selecting it.
My ...
0
votes
2
answers
179
views
Adding random images one by one on app in flutter
I am having trouble adding random images to the page by using a floating action button. After drawing an image from the .shuffle list, I want to draw another picture from the list. I could add more ...
0
votes
0
answers
37
views
SwiftUI Picker with Binding is not updating [duplicate]
I have implemented a Picker in a sheet like in the following code:
struct UserTabView: View {
@Environment(\.modelContext) private var modelContext
@Query private var userSkills: [...
1
vote
3
answers
124
views
SwiftUI / Can't save Picker timer
I can't save the selected timer value after leaving View.
Briefly: the user enters the screen, selects the timer time, clicks save, the selected value is saved in UserDefaults. Then the person leaves ...
-1
votes
1
answer
156
views
Display Siri Shortcuts programs in a picker - Swift (macOS)
I'm developing a Swift application for macOS.
I would like it to be able to interact with the user's shortcuts (block programs in the Shortcuts application, fig. 1). But I can't locate them...
Do you ...
0
votes
1
answer
2k
views
How to set background colour of Picker control?
I have a picker control (SwiftUI) and I am having trouble setting the background colour correctly.
In the below, I have set the background as GREEN, but notice there is a slightly darker overlayed ...
1
vote
1
answer
268
views
Why does the MAUI Picker fire the OnSelectionChanged event twice, with the first event being my selection and the second being Index 0?
Using .NET8 with MAUI, on an Android 13 device, I am trying to implement a Picker with an ItemSource on a complex object.
However, may it be through using the SelectionIndexChanged event, binding ...
1
vote
1
answer
118
views
Problem with changing attributes in SwiftUI Picker
I am currently learning Swift and have encountered a problem with SwiftUI for which I cannot find a solution. When I create a picker with text and an image, for example, I am unable to format them. I ...