diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..7225434 Binary files /dev/null and b/.DS_Store differ diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/NiceComponents.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/NiceComponents.xcscheme new file mode 100644 index 0000000..e19aab7 --- /dev/null +++ b/.swiftpm/xcode/xcshareddata/xcschemes/NiceComponents.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/NiceComponentsExample/.DS_Store b/NiceComponentsExample/.DS_Store new file mode 100644 index 0000000..977165f Binary files /dev/null and b/NiceComponentsExample/.DS_Store differ diff --git a/NiceComponentsExample/NiceComponentsExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/NiceComponentsExample/NiceComponentsExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 411498b..4640919 100644 --- a/NiceComponentsExample/NiceComponentsExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/NiceComponentsExample/NiceComponentsExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/onevcat/Kingfisher.git", "state": { "branch": null, - "revision": "2235a22ca249199cb736237f4bb9cc12b6ed416a", - "version": "7.3.0" + "revision": "c1f60c63f356d364f4284ba82961acbe7de79bcc", + "version": "7.8.1" } } ] diff --git a/NiceComponentsExample/NiceComponentsExample/View/NiceButtonExampleView.swift b/NiceComponentsExample/NiceComponentsExample/View/NiceButtonExampleView.swift index 64fb60a..3f64e93 100644 --- a/NiceComponentsExample/NiceComponentsExample/View/NiceButtonExampleView.swift +++ b/NiceComponentsExample/NiceComponentsExample/View/NiceButtonExampleView.swift @@ -28,7 +28,7 @@ struct NiceButtonExampleView: View { PrimaryButton( "Like Button", - surfaceColor: .white, + surfaceColor: .orange, border: .rounded( color: .black, cornerRadius: 4, @@ -38,6 +38,16 @@ struct NiceButtonExampleView: View { NiceImage(systemIcon: "heart.fill", width: 14, height: 14, tintColor: .red) ) + PrimaryButton( + "Capsule Button", + border: .capsule( + color: .black, + width: 1.5 + ) + ) { }.withRightImage( + NiceImage(systemIcon: "heart.fill", width: 14, height: 14, tintColor: .red) + ) + SecondaryButton("Left Image Button") { }.withLeftImage( NiceImage(systemIcon: "pencil", width: 14, height: 14, tintColor: .black) ) diff --git a/Package.resolved b/Package.resolved index 2a760a7..4640919 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/onevcat/Kingfisher.git", "state": { "branch": null, - "revision": "44e891bdb61426a95e31492a67c7c0dfad1f87c5", - "version": "7.4.1" + "revision": "c1f60c63f356d364f4284ba82961acbe7de79bcc", + "version": "7.8.1" } } ] diff --git a/Package.swift b/Package.swift index 68dee0b..53015ef 100644 --- a/Package.swift +++ b/Package.swift @@ -15,7 +15,7 @@ let package = Package( dependencies: [ .package( url: "https://github.com/onevcat/Kingfisher.git", - from: "7.2.0" + from: "7.6.1" ) ], targets: [ diff --git a/Sources/NiceComponents/Button/NiceButton.swift b/Sources/NiceComponents/Button/NiceButton.swift index 6bef25d..97c3a56 100644 --- a/Sources/NiceComponents/Button/NiceButton.swift +++ b/Sources/NiceComponents/Button/NiceButton.swift @@ -141,7 +141,7 @@ extension NiceButton { .frame(height: style.height) .fixedSize(horizontal: false, vertical: true) .background(inactive ? style.inactiveSurfaceColor : style.surfaceColor) - .cornerRadius(style.border.cornerRadius) + .cornerRadius(cornerRadius) .overlay( borderOverlay )