I have set up a "Picker" which works well, EXCEPT that the Label won't appear, I have struggled around this and I am sure the solution is very simple, here's what I have.
import SwiftUI
import SwiftData
struct iPadReadingsEntry: View {
@State private var whatOccasion: String = ""
let occassions = ["Misc", "Breakfast", "Mid Day Meal", "Evening Meal", "Bed Time"]
var body: some View {
.
.
.
HStack{
Picker("Before What Occasion :", selection: $whatOccasion ){
ForEach(occassions, id: \.self) {
Text($0)
}
}.pickerStyle(MenuPickerStyle())
.background(Color(red: 255, green: 253, blue: 208))
Spacer()
}.padding(.leading, 80)
.padding(.bottom, 30)
.
.
.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Is it possible to use XCode as an IDE to develop C++ apps on my Ubuntu server (cross platform)? I have tried many IDEs and none of the ones I tried came close to the functionality of XCode (and none of the ones I have tried work well cross platform).