Skip to content

Commit

Permalink
fix: Build
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Apr 28, 2023
1 parent 4d40f89 commit 6e8f45e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Sources/TsuzuKit/PressButtonStyle.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import SwiftUI

struct PressButtonStyle: ButtonStyle {
func makeBody(configuration: Configuration) -> some View {
public struct PressButtonStyle: ButtonStyle {
public func makeBody(configuration: Configuration) -> some View {
return configuration.label
.scaleEffect(configuration.isPressed ? 1.1 : 1)
.animation(.spring(response: 0.2, dampingFraction: 0.9), value: configuration.isPressed)
}
}

extension ButtonStyle where Self == PressButtonStyle {
public extension ButtonStyle where Self == PressButtonStyle {
static var squemo: Self {
return .init()
}
Expand Down
7 changes: 1 addition & 6 deletions Tests/TsuzuKitTests/TsuzuKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,5 @@ import XCTest
@testable import TsuzuKit

final class TsuzuKitTests: XCTestCase {
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(TsuzuKit().text, "Hello, World!")
}

}

0 comments on commit 6e8f45e

Please sign in to comment.