Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Swift 6 support and minor code quality enhancements #1

Merged
merged 5 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// SmoothRoundedRectangle+Attribtues.swift
// SmoothRoundedRectangle+Attributes.swift
// SmoothRoundedRectangle
//
// Created by Kumar on 06/07/24.
Expand All @@ -16,7 +16,7 @@ public extension SmoothRoundedRectangle {
case custom(_: CGFloat) // Custom factor between 0 and 100
}

struct Corners: OptionSet {
struct Corners: OptionSet, Sendable {

public let rawValue: Int
public init(rawValue: Int) {
Expand Down
2 changes: 1 addition & 1 deletion src/SmoothRoundedRectangle+Helper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ typealias CornerAttributes = SmoothRoundedRectangle.SmoothCornerAttributes

extension SmoothRoundedRectangle {

/// Attribues required for rounding a corner
/// Attributes required for rounding a corner
struct SmoothCornerAttributes {
var radius: CGFloat
var smoothness: CGFloat
Expand Down
2 changes: 1 addition & 1 deletion src/SmoothRoundedRectangle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct SmoothRoundedRectangle: Shape {
let bottomLeftCorner: CornerAttributes
let bottomRightCorner: CornerAttributes

// MARK: - Initialisers
// MARK: - Initializers

/// Standard all corners with optional smoothness and same radius
public init(radius: CGFloat, smoothness: Smoothness = .none) {
Expand Down