Skip to content

Commit

Permalink
Convert age from Int to String to give user better control
Browse files Browse the repository at this point in the history
  • Loading branch information
omarthamri committed Dec 1, 2023
1 parent b7a96e7 commit a70ed26
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Tests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.7.2</string>
<string>1.7.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion MyTinderSwipingAnimation.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'MyTinderSwipingAnimation'
s.version = '1.7.2'
s.version = '1.7.3'
s.summary = 'TinderSwipingAnimation is an easy to use library written using SwiftUI to simplify the implementation of the tinder swipe animation.'

# This description is used to generate tags and improve search results.
Expand Down
4 changes: 2 additions & 2 deletions Sources/TinderSwipingAnimation/Models/CardModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import SwiftUI
public struct CardModel {
public var name: String
public var imageName: String
public var age: Int
public var age: String
public var thumbsUpOpacity: Double = 0
public var thumbsDownOpacity: Double = 0
public init(name: String, imageName: String, age: Int) {
public init(name: String, imageName: String, age: String) {
self.name = name
self.imageName = imageName
self.age = age
Expand Down
2 changes: 1 addition & 1 deletion Sources/TinderSwipingAnimation/Views/Card.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct Card: View {
.font(viewModel.titleFont)
.foregroundStyle(viewModel.titleColor)
.fontWeight(.bold)
Text("\(card.age)")
Text(card.age)
.font(viewModel.subtitleFont)
.foregroundStyle(viewModel.subtitleColor)
.fontWeight(.bold)
Expand Down

0 comments on commit a70ed26

Please sign in to comment.