Skip to content

Commit

Permalink
Update For Building for Xcode 14 & Improve CI (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer authored Jun 23, 2023
1 parent 287bfbc commit 03034b8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
artifactname: SpeziContact.xcresult
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziContact
build:
name: Build Swift Package on Xcode 14
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macos-13"]'
scheme: SpeziContact
buildandtestuitests:
name: Build and Test UI Tests
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
Expand Down
12 changes: 3 additions & 9 deletions Sources/SpeziContact/Contact Views/ContactCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,9 @@ struct ContactCard: View {
ContactView(contact: contact)
.padding()
.background {
if #available(iOS 17.0, *) {
RoundedRectangle(cornerRadius: 10)
.foregroundStyle(.background)
.shadow(radius: 5)
} else {
RoundedRectangle(cornerRadius: 10)
.foregroundColor(Color(.systemBackground))
.shadow(radius: 5)
}
RoundedRectangle(cornerRadius: 10)
.foregroundStyle(.background)
.shadow(radius: 5)
}
}

Expand Down
18 changes: 4 additions & 14 deletions Sources/SpeziContact/Contact Views/ContactView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,8 @@ public struct ContactView: View {
if let address = contact.address {
Button(action: openMaps) {
ZStack {
if #available(iOS 17.0, *) {
RoundedRectangle(cornerRadius: 10)
.foregroundStyle(.background.secondary)
} else {
RoundedRectangle(cornerRadius: 10)
.foregroundColor(Color(.systemGroupedBackground))
}
RoundedRectangle(cornerRadius: 10)
.foregroundStyle(Color(uiColor: .secondarySystemBackground))
HStack(alignment: .top) {
VStack(alignment: .leading, spacing: 4) {
Text("CONTACT_ADDRESS", bundle: .module)
Expand Down Expand Up @@ -145,13 +140,8 @@ public struct ContactView: View {
private func contactButton(_ contactOption: ContactOption) -> some View {
Button(action: contactOption.action) {
ZStack {
if #available(iOS 17.0, *) {
RoundedRectangle(cornerRadius: 10)
.foregroundStyle(.background.secondary)
} else {
RoundedRectangle(cornerRadius: 10)
.foregroundColor(Color(.systemGroupedBackground))
}
RoundedRectangle(cornerRadius: 10)
.foregroundStyle(Color(uiColor: .secondarySystemBackground))
VStack(spacing: 8) {
contactOption.image
.font(.title3)
Expand Down

0 comments on commit 03034b8

Please sign in to comment.