Swift100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
sindresorhus

Would be nice to be able to use this with Swift/Cocoa APIs that accept a fraction . For example: https://developer.apple.com/documentation/uikit/uicolor/1621922-withalphacomponent https://developer.apple.com/documentation/appkit/nscolor/1526906-withalphacomponent https://developer.apple.com/documentation/swiftui/color/3049763-opacity https://developer.apple.com/documentation/swiftui/hstack/3269261-opacity https://developer.apple.com/documentation/swiftui/hstack/3269155-brightness https://developer.apple.com/documentation/swiftui/hstack/3269164-contrast https://developer.apple.com/documentation/swiftui/hstack/3269293-saturation https://developer.apple.com/documentation/swiftui/hstack/3269207-grayscale Does this make sense?

sindresorhus · 8mo ago
sindresorhus
FeedbackClosedIssue

Is this a good idea? Any downsides with such a type? Would it make sense to propose adding this kind of type to Swift itself?

sindresorhus · 8mo ago
Structured data for AI agents

Repository: sindresorhus/Percentage. Description: A percentage type for Swift Stars: 281, Forks: 25. Primary language: Swift. Languages: Swift (100%). License: MIT. Topics: number, percent, percentage, swift-package, type, type-safety. Latest release: v3.0.0 (8mo ago). Open PRs: 0, open issues: 0. Last activity: 8mo ago. Community health: 71%. Top contributors: sindresorhus, alexbinary, magauran, EvanHahn, irisdelaluna.