Skip to content

Commit

Permalink
fix(DataCard): fix compilation error with Xcode 14.3 beta 2
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removes use of optional binding where it's not needed
  • Loading branch information
jaranaz authored Mar 3, 2023
1 parent 0308cf4 commit e26751b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Sources/MisticaSwiftUI/Components/Cards/DataCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,13 @@ public struct DataCard<Headline: View, Fragment: View, PrimaryButton: View, Link
.buttonStyle(.misticaPrimary(small: true))
}

if let linkButton = linkButton {
linkButton
.buttonStyle(
.misticaLink(
small: true,
bleedingAlignment: hasPrimaryButton ? .none : .leading
)
linkButton
.buttonStyle(
.misticaLink(
small: true,
bleedingAlignment: hasPrimaryButton ? .none : .leading
)
}
)
}
.padding(.top, 16)
}
Expand Down

0 comments on commit e26751b

Please sign in to comment.