Commit Graph

22 Commits

Author SHA1 Message Date
Doug 70845c7d10 Fix visual issues when building with Xcode 13. 2022-02-03 18:30:39 +00:00
SBiOSoftWhare f536c8fde1 AvatarViewData: Make mediaManager property optional. 2021-09-29 11:28:13 +02:00
Gil Eluard 3c0a4c0633 Merge branch 'develop' into spaces
# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
2021-09-22 15:39:06 +02:00
Gil Eluard 9279d17226 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 f965620bfe CoordinatorParamters, Type -> Protocol, remove MX Prefix. 2021-09-08 15:47:24 +01:00
David Langley d82ae75a0b 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 ada377dcf2 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 cb0403ed8d Extract and start to split theme. 2021-08-27 16:26:56 +01:00
David Langley 328827c8f0 Fix problem showing error message on completion 2021-08-18 15:12:12 +01:00
David Langley fa4dee912d Fix imports and move logic to AvatarViewModel 2021-08-18 12:45:13 +01:00
David Langley 2624565935 Fix Comment 2021-08-17 11:58:20 +01:00
David Langley 00a2fdb8fc Remove log 2021-08-17 11:56:16 +01:00
David Langley e09138b572 Add dependency management, AvatarViewModel and placeholder rendering now in AvatarImage. 2021-08-17 10:19:41 +01:00
David Langley 4731efd0f2 Do avatar placeholder in SwiftUI, Add AvatarViewModel, Add dependency injection for MxMediaManager dependency. 2021-08-15 00:36:15 +01:00
David Langley c52fd96e0c 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 3ac8b312e0 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 82b0361647 Cleanup from comments 2021-08-12 16:57:19 +01:00
David Langley 77144980e3 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 9ff69eaaf0 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 652831fdbd AvatarView: Update AvatarViewDataProtocol, add possibility to set a defaut image. 2021-06-30 23:25:15 +02:00
SBiOSoftWhare 45a426ae22 AvatarView: Advertize on subclassing necessity. 2021-06-08 17:49:11 +02:00
SBiOSoftWhare 19e5ac3181 Create AvatarView: Base class to support an avatar view. 2021-06-07 18:46:16 +02:00