Comments (6)
Of course, please wait a few minutes for me.
from swiftui.
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.
Thank you very much for your help
from swiftui.
≖‿≖
from swiftui.
@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.
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)
- viewDidLoad equivalent? HOT 2
- Hi - Not Compiling on Xcode Version 11.0 beta 4 (11M374r) HOT 2
- 瀑布流这个能支持下吗,想看看咋写的 HOT 1
- 'roundedBorder' is deprecated: Use `RoundedBorderTextFieldStyle` directly instead. HOT 1
- 很多过期的内容 HOT 2
- ActionSheet 崩溃 HOT 1
- TabbedView 已被替换为 TableView HOT 1
- .grouped -> GroupedListStyle() HOT 1
- SwiftUI issue 多谢大佬贡献 HOT 1
- SwiftUI issue
- SwiftUI issue HOT 1
- Popover drag to dismiss seems buggy HOT 1
- Big sur not working HOT 1
- 请问有大佬帮我解答一下这个问题吗 HOT 1
- SwiftUI issue
- SwiftUI issue
- SwiftUI issue
- Cannot find 'MenuPage' in scope HOT 1
- How about a Q&A? HOT 3
- 'String' is not convertible to 'String?' HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftui.