Post

Replies

Boosts

Views

Activity

Reply to Idea for next iOS
Great idea, but I don’t think that it changes to much, already iPhone or other Apple products are very simple to use (brilliant colors, icons, animations, accessibility features and more). I see many old people transferring to iPhone because of its simplicity… And all the features you said are already possible, so we don’t have to make easier a thing that is already easy, doing so it will become more complex for us and also for the user
Jan ’22
Reply to Print something on the screen
I'm trying to do it in Swift Playgrounds and here's my code: import PlaygroundSupport let columns: [GridItem] = [GridItem(.flexible()),                            GridItem(.flexible()),                            GridItem(.flexible())] struct ContentView: View {     var body: some View {         GeometryReader { geometry in             VStack {                 Spacer(minLength: 290)                 Text("text")                     .font(.largeTitle)                 ZStack {                     LazyVGrid(columns: columns) {                         Group {                             Button {                                                              } label: {                                 ZStack {                                     Circle()                                         .frame(width: 90, height: 90)                                         .foregroundColor(Color(.systemBlue))                                         .opacity(0.5)                                     //.position(x: geometry.size.width/2, y: -100)                                                                          Text("5")                                         .font(.largeTitle)                                         .bold()                                         .foregroundColor(.black)                                 }                                 .frame(width: 90, height: 90)                             }                         }                     }                 }             }                      }                                  } } PlaygroundPage.current.setLiveView(ContentView()) I've created a text and I would like that the text will change on the press of the button. For example: there's a Text() witch now has written on it "text" and when I press the blue button (you can see it in my code), I want "text" to change to number "5"
Jan ’22
Reply to Print something on the screen
I've defined the text here, how can I change the value of it? VStack{             Text("text")                          Button {                              } label: {                 ZStack {                     Circle()                         .frame(width: 90, height: 90)                         .foregroundColor(Color(.systemBlue))                         .opacity(0.5)                                          Text("5")                         .font(.largeTitle)                         .bold()                         .foregroundColor(.black)                 }                 .frame(width: 90, height: 90)             }         }
Dec ’21