generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Update Contact Info + App Icon ## ♻️ Current situation & Problem - The application required an app icon update, accent color update to align with app icon color scheme, and contact information update for the project contacts. ## ⚙️ Release Notes - No new features added, only visual changes. Contact view information for three main contacts changed to only allow for email contact and website viewing. ## 📚 Documentation - No need to update documentation, only smaller visual changes ## ✅ Testing - Updated text within prior working version of app, visual changes ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
- Loading branch information
1 parent
1d168bf
commit eca33c2
Showing
6 changed files
with
101 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,31 +16,64 @@ struct Contacts: View { | |
let contacts = [ | ||
Contact( | ||
name: PersonNameComponents( | ||
givenName: "Leland", | ||
familyName: "Stanford" | ||
givenName: "Matthew", | ||
familyName: "Jörke," | ||
), | ||
image: Image(systemName: "figure.wave.circle"), // swiftlint:disable:this accessibility_label_for_image | ||
title: "University Founder", | ||
description: String(localized: "LELAND_STANFORD_BIO"), | ||
image: Image(systemName: "person.crop.circle"), // swiftlint:disable:this accessibility_label_for_image | ||
title: "PhD Student", | ||
description: String(localized: "MATTHEW_JOERKE_BIO"), | ||
organization: "Stanford University", | ||
address: { | ||
let address = CNMutablePostalAddress() | ||
address.country = "USA" | ||
address.state = "CA" | ||
address.postalCode = "94305" | ||
address.city = "Stanford" | ||
address.street = "450 Serra Mall" | ||
return address | ||
}(), | ||
contactOptions: [ | ||
.call("+1 (650) 723-2300"), | ||
.text("+1 (650) 723-2300"), | ||
.email(addresses: ["[email protected]"]), | ||
.email(addresses: ["[email protected]"]), | ||
ContactOption( | ||
image: Image(systemName: "safari.fill"), // swiftlint:disable:this accessibility_label_for_image | ||
title: "Website", | ||
action: { | ||
if let url = URL(string: "https://stanford.edu") { | ||
if let url = URL(string: "https://matthewjoerke.com/") { | ||
UIApplication.shared.open(url) | ||
} | ||
} | ||
) | ||
] | ||
), | ||
Contact( | ||
name: PersonNameComponents( | ||
givenName: "Emma", | ||
familyName: "Brunskill" | ||
), | ||
image: Image(systemName: "person.crop.circle"), // swiftlint:disable:this accessibility_label_for_image | ||
title: "Associate Professor (Tenured)", | ||
description: String(localized: "EMMA_BRUNSKILL_BIO"), | ||
organization: "Stanford University", | ||
contactOptions: [ | ||
.email(addresses: ["[email protected]"]), | ||
ContactOption( | ||
image: Image(systemName: "safari.fill"), // swiftlint:disable:this accessibility_label_for_image | ||
title: "Website", | ||
action: { | ||
if let url = URL(string: "https://cs.stanford.edu/people/ebrun/") { | ||
UIApplication.shared.open(url) | ||
} | ||
} | ||
) | ||
] | ||
), | ||
Contact( | ||
name: PersonNameComponents( | ||
givenName: "James", | ||
familyName: "Landay," | ||
), | ||
image: Image(systemName: "person.crop.circle"), // swiftlint:disable:this accessibility_label_for_image | ||
title: "Professor of Computer Science", | ||
description: String(localized: "JAMES_LANDAY_BIO"), | ||
organization: "Stanford University", | ||
contactOptions: [ | ||
.email(addresses: ["[email protected]"]), | ||
ContactOption( | ||
image: Image(systemName: "safari.fill"), // swiftlint:disable:this accessibility_label_for_image | ||
title: "Website", | ||
action: { | ||
if let url = URL(string: "https://profiles.stanford.edu/james-landay") { | ||
UIApplication.shared.open(url) | ||
} | ||
} | ||
|
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
Behavior/Resources/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+237 KB
(360%)
Behavior/Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters