Commit Graph

20 Commits

Author SHA1 Message Date
Gil Eluard 9a7a16220a Merge branch 'develop' into spaces
# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
2021-09-22 15:39:06 +02:00
Gil Eluard 068f4b3ce0 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 20bc4f5494 CoordinatorParamters, Type -> Protocol, remove MX Prefix. 2021-09-08 15:47:24 +01:00
David Langley 932ee0ac07 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 f4cb404df0 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 200fb69993 Extract and start to split theme. 2021-08-27 16:26:56 +01:00
David Langley 8890073a70 Fix problem showing error message on completion 2021-08-18 15:12:12 +01:00
David Langley ba0856e14d Fix imports and move logic to AvatarViewModel 2021-08-18 12:45:13 +01:00
David Langley 40cfdf896a Fix Comment 2021-08-17 11:58:20 +01:00
David Langley ccffb34418 Remove log 2021-08-17 11:56:16 +01:00
David Langley b0d41760ec Add dependency management, AvatarViewModel and placeholder rendering now in AvatarImage. 2021-08-17 10:19:41 +01:00
David Langley c68e901de6 Do avatar placeholder in SwiftUI, Add AvatarViewModel, Add dependency injection for MxMediaManager dependency. 2021-08-15 00:36:15 +01:00
David Langley 90ec1db965 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 89ac65b39c 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 49eb6ae1ec Cleanup from comments 2021-08-12 16:57:19 +01:00
David Langley e7ed51c4df 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 7ba98a01a9 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 b06e6c49e9 AvatarView: Update AvatarViewDataProtocol, add possibility to set a defaut image. 2021-06-30 23:25:15 +02:00
SBiOSoftWhare 1ecffcdebb AvatarView: Advertize on subclassing necessity. 2021-06-08 17:49:11 +02:00
SBiOSoftWhare 71af441ab3 Create AvatarView: Base class to support an avatar view. 2021-06-07 18:46:16 +02:00