Compound icons part III - Revenge of the SF Symbol (#2093)

* Use Compound in StartChat screen.

* Update location sharing icons.
This commit is contained in:
Doug
2023-11-16 15:50:06 +00:00
committed by GitHub
parent 5a1e02faeb
commit 0831c898ef
46 changed files with 215 additions and 1575 deletions
@@ -14,6 +14,7 @@
// limitations under the License.
//
import Compound
import SwiftUI
struct StaticLocationScreen: View {
@@ -109,10 +110,7 @@ struct StaticLocationScreen: View {
context.send(viewAction: .selectLocation)
} label: {
HStack(spacing: 8) {
Image(asset: Asset.Images.locationMarker)
.resizable()
.aspectRatio(contentMode: .fit)
.scaledFrame(size: 28)
LocationMarkerView(mode: .button)
Text(context.viewState.isSharingUserLocation ? L10n.screenShareMyLocationAction : L10n.screenShareThisLocationAction)
}
}
@@ -122,8 +120,11 @@ struct StaticLocationScreen: View {
Button {
context.send(viewAction: .centerToUser)
} label: {
Image(asset: context.viewState.isSharingUserLocation ? Asset.Images.locationPointerFull : Asset.Images.locationPointer)
CompoundIcon(asset: context.viewState.isSharingUserLocation ? Asset.Images.locationNavigatorCentred : Asset.Images.locationNavigator)
.padding(8)
.background(.compound.bgCanvasDefault, in: RoundedRectangle(cornerRadius: 6))
}
.dynamicTypeSize(.large)
.padding(16)
}