1 min read
ContentLast Updated - Platform 20.0 - SDK 15.0
The Account (or Account Content) screen is the landing screen of the Account feature.
Different content can be presented to logged in vs guest users. This can be configured on the CMS through the My Profile tab which is only available to users with account, and should be enabled through MB.
To navigate to the Account tab use:
AccountBuilder to build a
let viewController = AccountBuilder().withServiceMiddleware(.customAccountService()).build() as CustomLoginViewController
AccountStateusing the generic
AccountViewControllerwith a subclass by inferring using
.build() as CustomViewController.
.withServiceReducer()to all updates to the state.
- Add additional reducers using
.withServiceMiddleware()to handle fetching content.
.withRouterMiddleware()to handle navigation.
.withAnalyticsMiddleware()to handle analytics.
- Add additional middleware using
.withView()or use containers to replace the view.
.withViewDataMapper()or use containers to replace the mapper.
.build()to return the view controller.
.build(with:)to customise the initial state.
Container.shared to customise services, mappers, views and more. Put this code at the beginning of
setUpAccount, or (for shared dependencies) in
setUpDependencies. See the full list of Login dependencies below.