Search results for

swiftui

16,581 results found

Post

Replies

Boosts

Views

Activity

EventKit in SwiftUI
I am new to Swift and I would like to make an app including complex calendar events. I have done some research this morning and I'm having trouble finding any documentation or tutorials on implementing EventKit in SwiftUI, everyone is using storyboard but I don't know how to use that. Is EventKit supported in swiftUI or do I have to start learning story board?
1
0
1.4k
Jul ’22
SwiftUI and becomeFirstResponder
As with most apps, our apps need to allow the user to immediately type in a specific field when a view loads for the best experience. We currently have to use a UIViewRepresentable to make this possible. I was sure it would get resolved with the next release to SwiftUI, but unless I've missed it, this is still not possible. In the Build SwiftUI apps for tvOS - https://developer.apple.com/videos/play/wwdc2020/10042/ session, I saw prefersDefaultFocus(_:in:) - https://developer.apple.com/documentation/swiftui/button/prefersdefaultfocus(_:in:) (<= markdown parsing failure) which looked promising. But it is only available for tvOS and watchOS. Has anyone figured out how to make a TextField or TextEditor become first responder when its view is shown?
1
0
1.5k
Jun ’20
SwiftUI and UIKit
Hi all,I have been trying to add SwiftUI content to my existing UIKit apps, and I seem to be either missing or understanding something. Here's what I have so far:When an end user taps a top-right navigation button (help) i'd like the SwiftUI view controller to come up. 1. I am initializing the UIHostingController according to the WWDC Video, and am getting NO errors.2. I've added a UIHostingController to the storyboard and made connections according to the video, no errors.3. When I run the app and go to the SwiftUI view controller, the app hangs.What am I missing?Thanks,Dan Uff
2
0
1.1k
Oct ’19
EventKit with SwiftUI
I've been playing around with EventKit with SwiftUI trying to make my own version of a Reminders client, however, most of the tutorials or articles I've found really only explain it from a UIKit perspective and I'm not exactly sure how to make that applicable to SwiftUI, the documentation for EventKit is also of little to no help. Is there an article or example somewhere that shows how to do this?
2
0
2.2k
Jun ’20
SwiftUI tutorial
HI , I am going through the Swift UI tutorial “ Landmarks” app. Under building the landmarks list view section https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation I found that the instruction to add Identifiable option to the Landmark structure is not given. Due to this the preview of the LandmarkList fails to load in the SwiftUI canvas. The error shows “ cannot parse landmakData.json. Please correct the documentation.
1
0
303
Dec ’20