Last 12 weeks · 0 commits
4 of 6 standards met
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?
Repository: sindresorhus/Percentage. Description: A percentage type for Swift Stars: 280, Forks: 25. Primary language: Swift. Languages: Swift (100%). License: MIT. Topics: number, percent, percentage, swift-package, type, type-safety. Latest release: v3.0.0 (6mo ago). Open PRs: 0, open issues: 0. Last activity: 6mo ago. Community health: 71%. Top contributors: sindresorhus, alexbinary, magauran, EvanHahn, irisdelaluna.