-
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 the About screen and Updates screen with a 'leave a review' ca…
…llout button
- Loading branch information
Showing
6 changed files
with
163 additions
and
103 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
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
38 changes: 38 additions & 0 deletions
38
CatchUp-SwiftUI/Views/Multiscreen Subviews/CalloutButtonView.swift
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// CalloutButtonView.swift | ||
// CatchUp-SwiftUI | ||
// | ||
// Created by Ryan Token on 4/12/24. | ||
// Copyright © 2024 Token Solutions. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct CalloutButtonView: View { | ||
let buttonText: String | ||
let buttonColor: Color | ||
|
||
var body: some View { | ||
HStack { | ||
Spacer() | ||
|
||
Text(buttonText) | ||
|
||
Spacer() | ||
} | ||
.fontWeight(.semibold) | ||
.padding(.vertical, 12) | ||
.foregroundStyle(.white) | ||
.background( | ||
RoundedRectangle( | ||
cornerRadius: 20, | ||
style: .continuous | ||
) | ||
.fill(buttonColor) | ||
) | ||
} | ||
} | ||
|
||
#Preview { | ||
CalloutButtonView(buttonText: "Remove Bee", buttonColor: .red) | ||
} |
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