Post

Replies

Boosts

Views

Activity

Reply to Can DocC Generate Documentation for Extensions?
The solution is to use inside a package a public protocol with a type constraint and declare the type to conform to the protocol. Now you get the documentation you want. It is a cleaner solution than just using an extension. Example: import Foundation // The extension: public protocol FileManagerExtension: FileManager { } extension FileManager: FileManagerExtension { } // I don't know why this doesn't have to be public! // The new function: public extension FileManagerExtension {     /// My new function.     /// - Returns: 42.     func myNewFuntion() -> Int { return 42 } }
Oct ’21
Reply to How to hide keyboard on tap outside of TextField in SwiftUI?
@yellow8 Unfortunately not until now.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Initialize HKDeletedObject for unit test
Submitted this as Feedback FB12903177.
Replies
Boosts
Views
Activity
Aug ’23
Reply to Xcode 14.3.1 update needs reboot to install system extension?
I have problems with this update 14.3.1, too. It fails at the end of the update process after installing half an hour and without memory issues. It does not say it fails, it just begins to download the update again. The update process is definitely buggy this time.
Replies
Boosts
Views
Activity
Jun ’23
Reply to Can DocC Generate Documentation for Extensions?
The solution is to use inside a package a public protocol with a type constraint and declare the type to conform to the protocol. Now you get the documentation you want. It is a cleaner solution than just using an extension. Example: import Foundation // The extension: public protocol FileManagerExtension: FileManager { } extension FileManager: FileManagerExtension { } // I don't know why this doesn't have to be public! // The new function: public extension FileManagerExtension {     /// My new function.     /// - Returns: 42.     func myNewFuntion() -> Int { return 42 } }
Replies
Boosts
Views
Activity
Oct ’21
Reply to Duplicate Keys of Type 'EKEvent' were found in a Dictionary
I have just the same problem.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21