Hi All.I'm new to SwiftUI, l'll write an app that need access contacts.How can I ask permission in swiftui ?someone can help me ?thanks
Search results for
swiftui
16,582 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
How can I ceate the exact same functionality of the Page-Based application (formally Page-Based template) using SwiftUI to include these features:Portrait view single page turnLandscape view (in iPad) with two page view and page turnHere is an example video showing requested functionality:https://www.youtube.com/watch?v=9cl4slkXqyUSo far, the only examples I have seen in SwiftUI support single page Portrait view.Are there any tutorials that show all functionality supported.Jim
Hi everyone, In the demo code and in the video of the RoomPlan framework, UIKit is used with it. However, I would like to know if it is possible to use SwiftUI with RoomPlan instead of UIKit. Best regards, Clement
Is there a SwiftUI version of NSControl.allowsExpansionToolTips? That is, showing a tool tip with the full text when (and only when) a text item is truncated? Or do I need to use a hosting view to get that behavior?
Hi,Are there any plans for integrating Metal/MetalKit with SwiftUI?Is that correct that current recommended way of the integration is to use UIViewControllerRepresentable like in the tutorial?Thank you!
I want to develop games using swiftUi. I develop games in Unity. Now I want to learn to develop games in SwiftUI. I have few queries: 1: How can we animate objects in SwiftUI? 2: How can we add background? 3: How can we move objects? I will be glad if you answer my queries. I will be waiting for your response. Thanks Muhammad Momin Developer
I am experimenting with using Swift and SwiftUI for processing genomics data. The hallmark of genomics data is very large data files. Common formats are text files known as fasta and fastq file formats. For the human genome, these files contain more than 40 million lines of text. Being able to write code that can read such large files line by line is essential. After some trial and error and much reading I finally understand Automatic Reference Counting and the importance of using an autoreleasepool to prevent memory from being consumed. I typically read such large files in a background thread and asynchronously update the UI (written in SwiftUI) using DispatchQueue.main.async by setting properties in my ContentView. This works fine. However, as I reach 40 million lines of text, updating the UI consumes memory without releasing it. I have tried to incorporate autoreleasepools in the ContentView using the usual autoreleasepool { ... } syntax. However, within such constructs as VStacks, I enco
Even when you separate business logic code from your SwiftUI views the previews and also view bodies seems both to count for the unit test code coverage. I read many articles in the internet about how to test SwiftUI code and archive good code coverage. But they all seem not to be the perfect solution for this task. Is there any good guide for unit and ui testing SwiftUI code that Apple recommends for their apps?
Is it possible to use/draw a SwiftUI view in TextKit 2? The NSTextLayoutManagerDelegate seems to be built around returning a NSTextLayoutFragment. Since NSTextLayoutFragment is a class, I can't subclass it and use SwiftUI. I'd love to create my views using SwiftUI, since it's a lot faster than figuring out CGPaths, pixel perfect anti-aliasing, etc. Thanks!
My app currently uses the iCloud to bring down data for a list using swift how can I use SwiftUI to bring that data down and populate a list ?
In a lab this morning, it was suggested I look into SQLite. I liked the presentation on SwiftUI (WWDC20-10119) and was wondering if it would be possible to use SQLite as the model for data for a SwiftUI project (for the Sandwiches information in the model that was glossed over quickly in the presentation)?
Is there an equivalent for UIRefreshControl in SwiftUI?Thanks.
I need a loop in the SwiftUI and the number of loop is based on a condition so I don't think I can use the forEach loop. I wonder if it's possible to use a while loop in SwiftUI or is there an equivalent?
In Platforms State of the Union, there was a reference to Custom Gestures in SwiftUI, among new features. I didn't see anything about it in What's New with SwiftUI. Did I miss it? Anyone have more info?
Has anyone been able to get the new TextEditor view to work in SwiftUI form? I've tried different things and it seems like the row isn't aware of the size of the TextEditor as you type and it grows. I'd be more than happy to file a radar with example code if needed.