{"id":24084014,"url":"https://github.com/raymondjavaxx/smoothgradient","last_synced_at":"2025-04-30T19:43:13.843Z","repository":{"id":186220720,"uuid":"674459097","full_name":"raymondjavaxx/SmoothGradient","owner":"raymondjavaxx","description":"A SwiftUI package for creating smooth gradients using easing functions.","archived":false,"fork":false,"pushed_at":"2024-08-31T21:30:38.000Z","size":1852,"stargazers_count":74,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-25T20:40:10.174Z","etag":null,"topics":["easing","gradient","ios","macs","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raymondjavaxx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-04T02:20:37.000Z","updated_at":"2025-04-22T14:00:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"2bfdb0ed-6585-447e-ac08-d7db2c15c5ef","html_url":"https://github.com/raymondjavaxx/SmoothGradient","commit_stats":null,"previous_names":["raymondjavaxx/smoothgradient"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raymondjavaxx%2FSmoothGradient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raymondjavaxx%2FSmoothGradient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raymondjavaxx%2FSmoothGradient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raymondjavaxx%2FSmoothGradient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raymondjavaxx","download_url":"https://codeload.github.com/raymondjavaxx/SmoothGradient/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251772094,"owners_count":21641373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["easing","gradient","ios","macs","swift","swiftui"],"created_at":"2025-01-10T00:19:03.049Z","updated_at":"2025-04-30T19:43:13.815Z","avatar_url":"https://github.com/raymondjavaxx.png","language":"Swift","readme":"# SmoothGradient\n\nA SwiftUI framework for creating smooth gradients using easing functions.\n\n## Motivation\n\nLinear gradients tend to produce hard edges, which are more noticeable when transitioning between highly contrasting colors. This framework provides a simple way to create smoother gradients using easing functions.\n\n| Linear | Smooth |\n| --- | --- |\n| ![Linear Gradient](assets/linear_gradient.png) | ![Smooth Gradient](assets/smooth_gradient.png) |\n\n\n## Installation\n\n### Swift Package Manager\n\nAdd the following to your `Package.swift` file:\n\n```swift\n.package(url: \"https://github.com/raymondjavaxx/SmoothGradient.git\", from: \"1.0.0\")\n```\n\nTo add from Xcode, go to *File* -\u003e *Add Package Dependencies...* and enter the URL above.\n\n### CocoaPods\n\nAdd the following to your `Podfile`:\n\n```ruby\npod 'SmoothGradient', '~\u003e 1.0.0'\n```\n\n## Usage\n\n### Pre-iOS 17/Pre-macOS 14\n\n```swift\nimport SmoothGradient\n\nstruct ContentView: View {\n    var body: some View {\n        LinearGradient(\n            gradient: .smooth(from: .black, to: .white, curve: .easeInOut), // ⬅️\n            startPoint: .top,\n            endPoint: .bottom\n        )\n    }\n}\n```\n\n## iOS 17+/macOS 14+\n\n```swift\nimport SmoothGradient\n\nstruct ContentView: View {\n    var body: some View {\n        SmoothLinearGradient( // ⬅️\n            from: .black,\n            to: .white,\n            startPoint: .top,\n            endPoint: .bottom,\n            curve: .easeInOut\n        )\n    }\n}\n```\n\n## License\n\nSmoothGradient is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraymondjavaxx%2Fsmoothgradient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraymondjavaxx%2Fsmoothgradient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraymondjavaxx%2Fsmoothgradient/lists"}