Releases: rryam/MeshingKit
Releases · rryam/MeshingKit
2.0.0
MeshingKit 2.0 Release Notes
API Improvements
New Template System
- Introduced a new protocol-based gradient template system
- Added support for custom gradient templates through the
CustomGradientTemplate
struct - Maintained backward compatibility with existing size-specific methods
Simplified API Access
- Added clean dot syntax for accessing predefined templates:
// Before MeshingKit.gradientSize3(template: .auroraBorealis) // Now MeshingKit.gradient(template: .size3(.auroraBorealis))
New Namespace Organization
- Introduced
PredefinedTemplate
for better type safety and organization - Templates are now categorized by size (size2, size3, size4)
Custom Template Support
- Added ability to create custom gradient templates:
let customTemplate = CustomGradientTemplate(name: "Custom", size: 4, ...) MeshingKit.gradient(template: customTemplate)
Other Improvements
- Better documentation with more examples
- Improved type safety across the API
- Maintained all existing gradient templates and animations
Migration Guide
Existing code using size-specific methods (gradientSize2, gradientSize3, gradientSize4) will continue to work. To adopt the new API style, update your template references to use the new dot syntax.
1.2.1
New in this Release
Added more templates to 2x2 grid
1.2.0
New in this release
Add animation directly with a view:
MeshingKit.animatedGradientSize4(template: .auroraBorealis, showAnimation: .constant(true))
1.1.0
New in this release
Added parameterized noise shader and SwiftUI view:
ParameterizedNoiseView(intensity: .constant(0.5), frequency: .constant(0.2), opacity: .constant(0.9)) {
MeshingKit.gradientSize3(template: .cosmicAurora)
}
1.0.0
MeshingKit v1.0.0
Release Date: October 14, 2024
Gradient Templates with Multiple Sizes
- 2x2 Templates:
Examples: Mystic Twilight, Arctic Frost, Tropical Paradise, Cherry Blossom - 3x3 Templates:
Examples: Intelligence, Ocean Depths, Aurora Borealis, Ruby Fusion - 4x4 Templates:
Examples: Cosmic Nebula, Jungle Mist, Volcanic Oasis, Arctic Frost
Platform Support
MeshingKit is compatible with the latest versions of:
- iOS 18
- macOS 15
- macCatalyst 18
- tvOS 18
- visionOS 2
- watchOS 11
How to Use MeshingKit
import SwiftUI
import MeshingKit
struct ContentView: View {
var body: some View {
MeshingKit.gradientSize3(template: .cosmicAurora)
.frame(width: 300, height: 300)
}
}