Skip to content

pullrequests Search Results · user:sindresorhus language:swift archived:false is:public language:Swift language:HTML

Filter by

508 results  (237 ms)

508 results

insindresorhus (press backspace or delete to remove)

In SE-0401 , which will take effect in Swift 6, types with @StateObject will no longer be MainActor. @StateObject must be referenced from MainActor or a build error will occur, so @MainActor is added. ...

I added a swift 6.0 version of the package.swift Made all percentage initializers go into the same one allowing faction to be a let property.

Added Sendable to public struct.

Description This PR fixes: #170. Summarize all internal UserDefaults related observation classes into one. Introduce a new class, Defaults.UserDefaultsAnyKeysObservation, which can observe multiple keys ...

This adds support for SwiftUI menu items (they now auto update when shortcuts are changed). Also; it won t throw up a UI when modifying the existing shortcut. The implementation ... isn t great (it relies ...

I modified the translation to fit the strings within the buttons when recording (pressing) a shortcut. EDIT: First time doing this, let me know, please, if all is OK, if not I will try to fix whatever ...

Added any to each protocols to resolve existential-any build errors on Swift 6. https://github.com/swiftlang/swift-evolution/blob/main/proposals/0335-existential-any.md

I v added a string catalog (Localizable.xcstrings) and a german translation for the auto generated strings. This is not covering all user facing strings (e.g. the dialog for Animated GIF Preview Limitation ...

This makes is possible to list all the registered shortcuts, should one want to iterate over them,.