Commit Graph

21 Commits

Author SHA1 Message Date
SBiOSoftWhare
65660c6d3f AvatarViewData: Make mediaManager property optional. 2021-09-29 11:28:13 +02:00
Gil Eluard
4068c1a55f Merge branch 'develop' into spaces
# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
2021-09-22 15:39:06 +02:00
Gil Eluard
6335acc0cd Merge branch 'develop' into spaces
# Conflicts:
#	Riot/Modules/Common/Avatar/AvatarViewDataProtocol.swift
#	Riot/Modules/Common/Recents/RecentsViewController.m
#	Riot/Modules/Home/Views/RoomCollectionViewCell.m
#	Riot/Modules/TabBar/TabBarCoordinator.swift
2021-09-15 14:42:04 +02:00
David Langley
350fc6a742 CoordinatorParamters, Type -> Protocol, remove MX Prefix. 2021-09-08 15:47:24 +01:00
David Langley
17c6ce6a10 Add Simple Template Example
- Add a simple Template example that shows a user profile with avatar, displayName and presence.
- ScreenCoordinator: closure based with less protocols and delegates.
- Reducer: Reducer function that manages all state modifications.
- SwiftUI View: Decomposes UI into appropriate sub components.
- Uses Theme and Dependency Management Infrastructure
2021-09-06 17:12:31 +01:00
David Langley
862f30102f Finish extraction
- Moves SwiftUI code out of Riot and into RiotSwiftUI which has no dependency on Matrix SDK.
- Git wasn't smart enough to see the file moves. Most feature function has remain unchanged. 1 change I did make was remove NotificationSettingsViewModel's dependence on MxPushRule, so that the view model could be moved into RiotSwiftUI.
- Add LocaleProvider to abstract VectorL10n's use of Matrix SDK language so it can be used in RiotSwiftUI.
- Split Theme into UKit/SwiftUI version to remove RiotSwiftUI's dependence on ThemeService and ThemeV1.
- Migrated from ThemeObserver to ThemePublisher. We push updates to ThemePublisher so that we can remove ThemeService as dependency.
- Add .DS_Store to .gitignore
2021-09-01 12:34:38 +01:00
David Langley
087f848ec5 Extract and start to split theme. 2021-08-27 16:26:56 +01:00
David Langley
18ae9fabbb Fix problem showing error message on completion 2021-08-18 15:12:12 +01:00
David Langley
ec86f8e797 Fix imports and move logic to AvatarViewModel 2021-08-18 12:45:13 +01:00
David Langley
75740f1886 Fix Comment 2021-08-17 11:58:20 +01:00
David Langley
76fdf7ce36 Remove log 2021-08-17 11:56:16 +01:00
David Langley
7963915926 Add dependency management, AvatarViewModel and placeholder rendering now in AvatarImage. 2021-08-17 10:19:41 +01:00
David Langley
807dfdfce2 Do avatar placeholder in SwiftUI, Add AvatarViewModel, Add dependency injection for MxMediaManager dependency. 2021-08-15 00:36:15 +01:00
David Langley
f0ac2ba1ad Update Riot/Modules/Common/Avatar/AvatarService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2021-08-13 08:24:42 +01:00
David Langley
2718621d10 Update Riot/Modules/Common/Avatar/AvatarService.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2021-08-13 08:24:26 +01:00
David Langley
7d45fdc50f Cleanup from comments 2021-08-12 16:57:19 +01:00
David Langley
814741edf3 Fix avatar service not returning generated image on network error. Fix padding and make nav buttons private. 2021-08-12 13:49:56 +01:00
David Langley
7464614ff4 Add theming support, and support for other top level configuration to swiftui views with VectorHostingViewController, VectorContentModifier. Add VisibilityModifier. Move from List to VStack. 2021-08-12 11:52:06 +01:00
SBiOSoftWhare
58bee63caf AvatarView: Update AvatarViewDataProtocol, add possibility to set a defaut image. 2021-06-30 23:25:15 +02:00
SBiOSoftWhare
e26292c6e5 AvatarView: Advertize on subclassing necessity. 2021-06-08 17:49:11 +02:00
SBiOSoftWhare
ab93b079a5 Create AvatarView: Base class to support an avatar view. 2021-06-07 18:46:16 +02:00