mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
LLS Sheet implementation (#5420)
* Add LiveLocationSheet and refactor existing views to share code * Implement logic for highlighting a specific LLS from a user once selected in the sheet * Updated tests, project and added new previews for the LLS sheet. # Conflicts: # PreviewTests/Sources/__Snapshots__/PreviewTests/liveLocationRoomTimelineView.Bubbles-iPad-pseudo.png # PreviewTests/Sources/__Snapshots__/PreviewTests/liveLocationRoomTimelineView.Bubbles-iPhone-pseudo.png * add Equatable conformance to CLLocationCoordinate2D
This commit is contained in:
@@ -619,6 +619,14 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
func liveLocationSheet() async throws {
|
||||
AppSettings.resetAllSettings() // Ensure this test's previews start with fresh settings.
|
||||
for (index, preview) in LiveLocationSheet_Previews._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
func loadableImage() async throws {
|
||||
AppSettings.resetAllSettings() // Ensure this test's previews start with fresh settings.
|
||||
@@ -1651,6 +1659,14 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
func userLocationCell() async throws {
|
||||
AppSettings.resetAllSettings() // Ensure this test's previews start with fresh settings.
|
||||
for (index, preview) in UserLocationCell_Previews._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
func userProfileCell() async throws {
|
||||
AppSettings.resetAllSettings() // Ensure this test's previews start with fresh settings.
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2988b20b96a1bfcd3e38d7bb29584768a6236b94a621b2344ab245b62dbe05b1
|
||||
size 2184708
|
||||
oid sha256:c277bb78c7d441b3e8115f167c2e7f7e00fcd78e540a066c8cc6c8b73867da27
|
||||
size 2179664
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:943e3454b93e8f729d82725e4d913612b0b9288145aa983d13c7cac51ad6e3d9
|
||||
size 2213162
|
||||
oid sha256:6c5e35e65f298b421969560c323285da0c0f6db636a15ab22b49317b6cc85f80
|
||||
size 2208377
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bef678cf3b73d11746503a6e04b1915fd982bbd55a6938a1ec1d6ee8000a5533
|
||||
size 933876
|
||||
oid sha256:e539d337d962a7badb5c8bc48aff59ced0b3f36166b2cd11274c5708dee6ebac
|
||||
size 930910
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9fc0cc5993b63891cb7b7d29b2edb715d340dbaf8d9c16f76a4dab5b6a0b03ff
|
||||
size 963921
|
||||
oid sha256:defab6e3ebc64df64085507a111a311690ad935bb1c68d305d7dfb8654f7803c
|
||||
size 950951
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a7cd236a0471e7ee714a813803ce9e26c95c1d402edc44ff2a90a59b3c102760
|
||||
size 94159
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6111e09f7f33e9fb2c67053a7dfc7705f0c14e5df0cc03a07195ce2739f30ef6
|
||||
size 95805
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d9e06331704a391cd9c77831c7396e926009f4287234c85bcc3e0582105b6c6b
|
||||
size 50516
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2b3fe440bbf5533f296675a10baf249e6f96a9aca05ddcb92b32e73129f44c9a
|
||||
size 57218
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a7cd236a0471e7ee714a813803ce9e26c95c1d402edc44ff2a90a59b3c102760
|
||||
size 94159
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6111e09f7f33e9fb2c67053a7dfc7705f0c14e5df0cc03a07195ce2739f30ef6
|
||||
size 95805
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d9e06331704a391cd9c77831c7396e926009f4287234c85bcc3e0582105b6c6b
|
||||
size 50516
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2b3fe440bbf5533f296675a10baf249e6f96a9aca05ddcb92b32e73129f44c9a
|
||||
size 57218
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f720e8d495a071c41fa5e78d147d12cada18ff230a76c0fd5bdd279d9ad0d716
|
||||
size 91092
|
||||
oid sha256:e09291794c3c934176e4c095b3f6db22ffd47d3935bc28591ee701f2b7270bd3
|
||||
size 93238
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f9fe046cb42faa4f7b26c7747f1866b793f0a4f5bec7be5fe9f746f6abdd52a1
|
||||
size 93417
|
||||
oid sha256:2a76afd12396dc6854c91ac8653ae5ec03c35111cff22f8b722edd082bed1ef7
|
||||
size 95532
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:74b0280e227fe297a8076eada6e95e541ed7188bf91e3d85397cc89a11f98284
|
||||
size 47996
|
||||
oid sha256:500b6466a24525797477ca81be1cc52d2559ef79b4e88e94461392e2922d0f27
|
||||
size 49347
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0d93fa9aaf8bc5caf5ddfe06dd21ca1ed2c31929f3a8dbad01bdffbfdb7efac6
|
||||
size 51132
|
||||
oid sha256:506094fb7f842c515adf6974832cf17d0380787304c10293096ebddc2f810cfd
|
||||
size 54091
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dfb1f3557859cd8f83ed4a026ef26e7477e38020db4b05f7d0d3c20eb76eee9d
|
||||
size 90873
|
||||
oid sha256:eb75487bf719e67e90d9902c2735b9e7465d0d5b9af4a42ebcdb985fb0f1872b
|
||||
size 93207
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c706260c75f42ff1386abead7093fc6c9e7bda48d0eb98ba3f6ce5c4614f7cce
|
||||
size 92218
|
||||
oid sha256:ec02cf01c4928591b10b88d7b3e3e1663f7dc6fbe9da2012914b9726ef174d3d
|
||||
size 95247
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d06b463b821680210a17f85a060d2c3a42406af4a828d30a8bb73069c47969e9
|
||||
size 48009
|
||||
oid sha256:033e8147bbb8a68f1c5af220e52ef3b5f1d38c6dc38ec909f3ba6651a5bbc319
|
||||
size 49324
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4facc31c68b7e7dbc8f1d3fb8fbd07ff2c9f630c8f35ab05f9bb1525666b5129
|
||||
size 50675
|
||||
oid sha256:9d0b1036aec8f1e889d66400c3a7af80fcddd53c79d130825c637d7141895b4a
|
||||
size 53029
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:87340e7a07ad0b0519806217fe20d555c5ce9a81bd725a93fdde31885f32c794
|
||||
size 28919
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1597903358bd02adc5677fe861ec7396027efdd55ee06eba7a901e3980e5b52b
|
||||
size 30286
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ff6b6914c41e8800b66e15c300163326ff50f757ad30a7e30a8836bee7f431f2
|
||||
size 24134
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:55c69caa22efdccb3788544087220f447bece068b1d5d245a403eaa4071356e4
|
||||
size 29704
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:62ea5e41be32c7b9522ddd823792c2e423bcfc77dc4d36ec85b70be722f5e2cc
|
||||
size 27861
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b70e538266124a9e271b8cf7f10a72973e6557024b9d3f810dfb23fc882cf19
|
||||
size 29891
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7d2ffbcb019d03331c74b70fdc33dc3d86bdcf5c65e54e0eb724dd7cd0c8f15b
|
||||
size 23019
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:39d1cd53c2172f0292d844230876b90d59735664cbbe9e4600d5e120ca77b7ab
|
||||
size 26988
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:214e4ab4f38636fa7ed00c24eae8e02adc5350e83a0d0c2ed9d5d992fa2b2a26
|
||||
size 27941
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6432d607d6a85c6c3a4ff8bd8684df22890e27dcd8a4da6e1b919195adabb2cc
|
||||
size 30077
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5466e5f2fda6154f120b3f257f4ce95b50c677133777f19922e092b809b28233
|
||||
size 23091
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d96f022a5a3587a3dc4e77f43de1b23470dfd830056bf384bd6a14d00f952f2e
|
||||
size 27148
|
||||
Reference in New Issue
Block a user