GithubHelp home page GithubHelp logo

Picker example about swiftui HOT 6 CLOSED

jinxiansen avatar jinxiansen commented on May 22, 2024
Picker example

from swiftui.

Comments (6)

Jinxiansen avatar Jinxiansen commented on May 22, 2024 1

@muhammadelkady25

Of course, please wait a few minutes for me.

from swiftui.

Jinxiansen avatar Jinxiansen commented on May 22, 2024 1

Picker

I have added the Picker usage example, as shown above.
You can download the project to view the source code.
https://github.com/Jinxiansen/SwiftUI#Picker

from swiftui.

muhammadelkady25 avatar muhammadelkady25 commented on May 22, 2024

Thank you very much for your help

from swiftui.

Jinxiansen avatar Jinxiansen commented on May 22, 2024

≖‿≖

from swiftui.

muhammadelkady25 avatar muhammadelkady25 commented on May 22, 2024

@Jinxiansen another thing .. in the example the second picker overlaps the first one .. the area in the middle (2 gray lines overlaps each other) .. I have six pickers. The last one receives touch in the overlapped area. how to give it a fixed width ?

 Picker(selection: $firstLetterIndex, label: Text("")) {
                    ForEach(0..<letters.count) {
                        Text(self.letters[$0]).tag($0)
                    }
                }.fixedSize().frame(width: 20)

This did not work for me

from swiftui.

Jinxiansen avatar Jinxiansen commented on May 22, 2024

Jietu20190612-223205@2x

I tried to arrange 6 Pickers horizontally, which caused the top 5 Texts to not display properly, and when the first Picker swung up and down, it responded with the value of the third Picker. Maybe this is a bug in SwiftUI.😂

from swiftui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.