Added a new optional delegate method to `MSDateTimePickerDelegate` that allows a consumer to turn off modal auto-dismiss when the done button is pressed. This allows the user to validate or do asynchronous work before either dismissing themselves via `MSDateTimePicker.dismiss()`, or not dismiss altogether, effectively canceling a dismiss. If the delegate method is not implemented, auto-dismiss when done is pressed defaults to on.
Also added an example of this to the demo with a switch to turn on said validation.
These are not usable currently from outside
the module. This allows consumers of OfficeUIFabric
SDK to use MSAvatarSize options with other services
that require CGSize or UIFont.
Now all resource files (strings, images) will be collected in OfficeUIFabricResource.bundle instead of hanging in OfficeUIFabric.framework by themselves. This was mainly done to support usage of OfficeUIFabric pod as a static library, which is needed for FilePicker in Outlook. Without this change all resource files were dumped in the root of consuming app package overwriting app's resources.
- New OfficeUIFabricResources target that generates a resource bundle
- Podspec: uses resource bundle instead of resources
- OfficeUIFabricFramework: new resourceBundle
- String: extension resourceBundle uses resourceBundle
- UIImage: extension staticImageNamed uses resourceBundle
Related work items: #712692
The latest "@office-iss/sdx-build-tools" now will write the git remote url and git commit used to build the NuGet artifacts directly into the nuspec metadata. This meta data is extremely useful when a branch needs to be created for an older build for making patches.
- MSColors: made all colors writable
- MSColors: added disabled, foregroundRegular, foregroundSecondary generic semantic colors and used them where appropriate
- MSColors: removed unused Persona colors
- MSLabelDemoController: updated code for white-style label's background
Related work items: #710317
Remove separator between weeks from MSCalendarView.
Corner radius was already correct, so that part of the attached work item can be ignored.
Related work items: #710322
- Demo: moved resources (images, storyboards) into new Resources folder
- Moved OfficeUIFabric.swift to Core group
- Renamed "Supporting Files" group to "Configuration" to match demo
- Demo: moved "Configuration" group to the end of the list
- Demo: removed Dogfood.entitlements and turned off remote notifications (both were needed for App Center Push which we don't use anymore)
Uses MSTableViewCell in Main.storyboard and MasterViewController to display demo list. Updated init?(coder:) in cell so cell can be initialized from storyboard.
Related work items: #708731
- OfficeUIFabricFramework: new initializeAppearance
- Demo: uses new initializeAppearance from Fabric
- Demo: removed "back item" title for list screen
Related work items: #709293
- Demo: updated launch screen to show Fabric and MS logos
- Demo: status bar is hidden now during startup
- Demo: removed localized strings for launch screen
- Removed MSButtonTests.swift
Related work items: #701129
Adds a demo for MSActivityIndicatorView and updates MSActivityIndicatorViewSize to include the sizes included in toolkit. Small refactor of MSAvatarView demo due to reused code.
Related work items: #705398
- UIView extension: fitIntoSuperview(...) supports usingLeadingTrailing = false (left/right-based constraints instead of leading/trailing)
- DemoController: demo container is inserted into UIScrollView using left/right constraints, not leading/trailing due to bad support of RTL from UIScrollView
- Demo list: added disclosure indicator
Related work items: #708163
This PR creates a strings file for every supported language in the demo.
The previous localization PR only worked during testing because of caching in the build folder, and would stop supporting the expected languages when the build folder was cleaned. Supporting a language requires at least one localized file, so we are adding a LaunchScreen.strings for every language.
Related work items: #678557
This PR integrates our localized languages into the Xcode project files for both the framework and the demo.
Every language should now be showing in the demo where appropriate, but we will not be adding localized files for demo-only strings. Localization will show up for any strings that are included in the framework.
This includes fixes for plist syntax errors that were introduced in previous Touchdown PRs.
Related work items: #678557