jinxiansen / swiftui Goto Github PK
View Code? Open in Web Editor NEW`SwiftUI` Framework Learning and Usage Guide. 🚀
Home Page: https://jinxiansen.github.io/SwiftUI/
License: MIT License
`SwiftUI` Framework Learning and Usage Guide. 🚀
Home Page: https://jinxiansen.github.io/SwiftUI/
License: MIT License
macOS version:10.15.1
Xcode version: 11.3.1
Describe your problem:
iPadOS version: 13.1.2
Xcode version: 11.1
demo运行在iPadOS上,点击ActionSheet崩溃。
目前我们做 app 一般最低版本是往前支持三个版本,这个从 iOS13 开始支持,要多年以后才能使用
感谢分享! 现在我们已经知道了如何使用各个UI组件, 那么下一步, 如何使用SwiftUI来实现更深层次的UI功能定制?
比如:
Now we know how to compose view controllers by SwiftUI. But then?
List{
}.listStyle(GroupedListStyle())
macOS version: 10.15
Xcode version: 11.0 beta 6
Describe your problem:
Seems that using this line for TextField .textFieldStyle(.roundedBorder)
is now deprecated.
The correct way should be .textFieldStyle(RoundedBorderTextFieldStyle())
So now the new example should be:
TextField(self.$name, placeholder: self.nameText, onEditingChanged: { changed in
print("onEditing: \(changed)")
}) {
print("userName: \(self.name)")
self.endEditing(true)
}}
.padding(10)
.frame(height: 50)
.textFieldStyle(RoundedBorderTextFieldStyle())
.padding(EdgeInsets(top: 0, leading: 20, bottom: 0, trailing: 20))
macOS version:
Xcode version:
Describe your problem:
macOS version: 10.15Beta
Xcode version: 11.0 Beta 6
Describe your problem:
很多View已经被移除或者用法改变了
内容没有及时更新
Could you provide a picker example containing for example list of chars [A..Z] or lis of numbers [0..9]
只是单纯感谢下
xcode Version 11.0 beta 2 (11M337n)
模拟器:iphone xr ios 13
运行
PageRow(title: "WebView",subTitle: "用于展示一个打开的网页")
报错内容:'String' is not convertible to 'String?'
我不懂swift的语法,不知道该怎么解决
macOS version: 14.2.1
Xcode version: 15.2
Describe your problem:
If I run the clean project, the error message is "Cannot find 'MenuPage' in scope" in Example › ContentView › body line 111
I think these are great examples to learn from, would you please fix the compilation issues for Xcode Version 11.0 beta 4 (11M374r)?
Thank you,
Wael
macOS version:
Big sur 11.0.1
Xcode version:
12.2
Describe your problem:
这下面的Demo跑不起来了
https://github.com/Jinxiansen/SwiftUI/tree/doc
macOS version:
10.15.4
Xcode version:
11.4.1
初学者,�TextField那儿按照楼主的方法全都报错了,后来我找到了这个是正确的的
TextField("User Name", text: $username, onEditingChanged: { (value) in print("onEditingChanged:\(self.name)") }) { print("onCommit:\(self.name)") }} .padding(10) .frame(height: 50) .textFieldStyle(RoundedBorderTextFieldStyle()) .padding(EdgeInsets(top: 0, leading: 20, bottom: 0, trailing: 20))
Describe your problem:
如题。
macOS version:
Xcode version:
Describe your problem:
Hi,
Currently I am looking into TabbedView and I have a question. I was managed to create a simple app containing two tabs and now I am trying to load the data once after the tab was loaded. I tried using onAppear method but unfortunately it is called every time a tab was selected. Any ideas how to handle such logic?
macOS version:
Xcode version:
Describe your problem:
macOS version:
11.15
Xcode version:
11
Describe your problem:
TabbedView 已被替换为 TableView,readme 的内容需要修改了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.