Releases: material-components/material-components-ios
Releases · material-components/material-components-ios
Release 39.0.0
API Changes
Animation Timing'
- Added the
MDCAnimationTimingFunctionSharp
timing function from the spec.
Bottom Navigation
- Added
MDCBottomNavigationBarDelegate
with controls on selecting items.
Button
- Added
minimumSize
andmaximumSize
properties.
Ink
- Added
injectedInkViewForView
convenience function to find an ink view in a view hierarchy.
Slider
- Added
disabledColor
property.
Text Fields
- Added
MDCMultilineTextField
expandsOnOverflow
andplaceholder
text properties. - The
MDCTextInput
expandsOnOverflow
property is no longer IBInspectable.
Component changes
ActivityIndicator
Changes
- Add a mode switch for the configurator example. (#2341) (featherless)
- Extract motion spec and use the Material Motion Animator for all animations. (#2344) (featherless)
- Fix bug where the indeterminate animation stroke end would animate too quickly. (#2345) (featherless)
- Implement sizeThatFits on MDCActivityIndicator (#2380) (John Detloff)
- Initial addition of kokoro and bazel continuous integration support. (#2316) (featherless)
- Remove ActivityIndicator prefix from local static consts. (#2342) (featherless)
AnimationTiming
Changes
- Add the sharp curve. (#2329) (Cody Weaver)
- Initial addition of kokoro and bazel continuous integration support. (#2316) (featherless)
BottomNavigation
Changes
- Add protocol for responding to item selection (#2372) (Junius Gunaratne)
- Add bottom navigation documentation (#2313) (Junius Gunaratne)
- Add color themer to bottom navigation bar (#2239) (Junius Gunaratne)
- Fix example using iOS 10 API (#2357) (Robert Moore)
Buttons
Changes
- Add properties minimumSize, maximumSize (#2254) (Robert Moore)
- Deprecate -cornerRadius method (#2256) (Robert Moore)
CollectionCells
Changes
FlexibleHeader
Changes
- Fix bug where status bar visibility changes could cause the header size to jump. (#2321) (featherless)
- Fix jumping header behavior when shifting off-screen. (#2327) (featherless)
- [FlexibleHeader+UIMetrics] Add BUILD file. (#2323) (featherless)
- updating FlexibleHeader readme (#2318) (Martin Petrov)
Ink
Changes
- Add BUILD file. (#2330) (featherless)
- Moved InkTouchController injectedInkViewForView: from catalog to Ink component (#2332) (Randall Li)
MaskedTransition
Changes
- Fix imports of private headers (#2331) (Robert Moore)
PageControl
Changes
- Removed unused ColorFromRGB function (#2365) (Yurii Samsoniuk)
Palettes
Changes
ProgressView
Changes
- Add a motion spec and use new implicit motion animator APIs (#2363) (featherless)
- Use MDCPalettes for default tint color (#2368) (Yurii Samsoniuk)
Slider
Changes
TextFields
Changes
- Adding a constraints update when the placeholder scale changes. (#2367) (Will Larche)
- Correcting alphabetizing of some code. (#2343) (Will Larche)
- Fix multiline placeholder position and transform bug. PR #2 (#2360) (Will Larche)
- Fixes bugs on multiline IB support (#2289) (Will Larche)
- Some useful comments. (#2366) (Will Larche)
Release 38.1.1
No code changes. Added a missing dependency to the BottomNavigation component found after the 38.1.0 release was published.
Release 38.1.0
API Changes
Bottom Navigation
- New component: Bottom Navigation makes it easy to explore and switch between top-level views in a single tap, similar to a UITabBar.
Text Fields
MDCTextInput.cursorColor
controls the color of the blinking cursor (in the text).
Component changes
ActivityIndicator
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- Migrated to MDFi18n. (#2246) (Yurii Samsoniuk)
AnimationTiming
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
AppBar
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- Migrated to MDFi18n. (#2243) (Yurii Samsoniuk)
BottomAppBar
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- Migrated to MDFi18n. (#2244) (Yurii Samsoniuk)
BottomNavigation
Changes
- Adding bottom navigation component (#2088) (Junius Gunaratne)
- Create Bottom Navigation Swift example (#2288) (Junius Gunaratne)
- [BotteomNavigation] Migrated to MDFi18n. (#2306) (Yurii Samsoniuk)
ButtonBar
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- [BottomBar] Migrated to MDFi18n. (#2245) (Yurii Samsoniuk)
Buttons
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
CollectionCells
Changes
- Migrated to MDFi18n. (#2248) (Yurii Samsoniuk)
Collections
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
Dialogs
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
FlexibleHeader
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- Update the min/max height before enforcing content insets. (#2312) (featherless)
HeaderStackView
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
MaskedTransition
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- Fix bug where transitions wouldn't complete. (#2293) (featherless)
- Use the provided key path consts from MotionAnimator. (#2294) (featherless)
NavigationBar
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- Migrated to MDFi18n (#2280) (Yurii Samsoniuk)
- [NavigationBarExamples] Swapped private/RTL with MDFi18n (#2300) (Yurii Samsoniuk)
PageControl
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- safeArea fixes (#2301) (ianegordon)
Palettes
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
ProgressView
Changes
- [ProgressBar] Migrated to MDFi18n (#2281) (Yurii Samsoniuk)
ShadowElevations
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
ShadowLayer
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
Tabs
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- Internal fixes to account for the Safe Area insets. (#2261) (Andrés)
- Migrated to MDFi18n (#2282) (Yurii Samsoniuk)
- [Catalog] De-hardcode the status bar height from a couple of examples. (#2292) (Andrés)
- [TabBar] Add safeAreaInsets.bottom to tabBarHeight in MDCTabBarViewController. (#2315) (Andrés)
TextFields
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
- Adds cursor color as parameter (#2297) (Will Larche)
- Fixes clear button not reseting character count (#2277) (Will Larche)
- Major improvements to RTL (#2274) (Will Larche)
- Migrated to MDFi18n (#2283) (Yurii Samsoniuk)
Typography
Changes
- @objc annotating catalog by convention (#2305) (Martin Petrov)
Release 38.0.1
API Changes
None for this release.
Component changes
BottomAppBar
Changes
- Remove unnecessary autoresizing mask (#2273) (Junius Gunaratne)
- Set nav bar frame on layout (#2272) (Junius Gunaratne)
FlexibleHeader
Changes
- Disable content inset adjustments in the horizontal pager scroll view example's horizontal scroll view. (#2264) (featherless)
- Only disable automaticallyAdjustsScrollViewInsets on the parent controller when the device is running an OS older than iOS 11. (#2265) (featherless)
- [Flexible Header] Rework our enforcement of content insets. (#2263) (featherless)
TextFields
Changes
Release 38.0.0
API Changes
Navigation Bar
- (Swift only)
titleTextAttributes
uses a dictionary with keys of typeNSAttributedStringKey
instead ofNSString *
so, for example,.font
should be used intead ofNSAttributedStringKey.font.rawValue
.
Component changes
AppBar
Changes
BottomAppBar
Changes
- Update bottom app bar for iPhone X (#2234) (Junius Gunaratne)
Collections
Changes
Dialogs
Changes
NavigationBar
Changes
Release 37.0.0
37.0.0
API Changes
Text Fields
- Added
[MDCTextFieldPositioningDelegate textInputDidUpdateConstraints]
, called after the input'supdateConstraints
. MDCTextInputControllerDefault
'sfloatingPlaceholderDestination
property is replaced withfloatingPlaceholderOffset
and is aUIOffset
, notCGPoint
.
Component changes
Buttons
Changes
- Update layout constraint to offset buttons by 20pt upwards, move catalog functions into extension (#2194) (Cody Weaver)
- use modern selectors (#2207) (Martin Petrov)
FlexibleHeader
Changes
- Update contentInsetAdjustmentBehavior check to include ScrollableAxes (#2223) (Andrés)
- inFrontOfInfiniteContent working when !trackingScrollView (#2221) (Andrés)
PageControl
Changes
- Fix bug with OOB array lookup when calling scrollViewDidScroll. (#2197) (Moshe Kolodny)
- use modern selectors (#2207) (Martin Petrov)
Slider
Changes
Snackbar
Changes
- Update to support safeAreaInsets (#2212) (Sam Morrison)
Tabs
Changes
- Fix a bug that where an item cell title can be missing (#2202) (Chris Silverberg)
TextFields
Changes
Release 36.3.0
API Changes
Flexible Header
- Added
minMaxHeightIncludesSafeArea
to inform the component if theminimumHeight
andmaximumHeight
properties include the safe area inset.
Component changes
FlexibleHeader
Changes
Release 36.2.0
36.2.0
API Changes
Text fields
-[MDCTabBarControllerDelegate tabBarController:shouldSelectViewController:]
and-[MDCTabBarControllerDelegate tabBarController:didSelectViewController:]
will be called for the currently-selected tab if the user taps the tab again (that is, the tab doesn't change). This matches Apple's behavior more closely and allows for custom behaviors.MDCMultilineTextField
now has aMDCMultilineTextInputDelegate
for useful methods not included in UITextViewDelegate.
Component changes
ActivityIndicator
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
AnimationTiming
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
AppBar
Changes
- Make use of MDCDeviceTopSafeAreaInset. (#2186) (featherless)
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
BottomAppBar
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
BottomSheet
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
Dialogs
Changes
- Respect safe area insets (#2165) (ianegordon)
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
FlexibleHeader
Changes
- Ignore safe area inset changes if we know that the status bar visibility is changing. (#2160) (featherless)
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
HeaderStackView
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
NavigationBar
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
ShadowElevations
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
- Update ShadowElevations to be extensible. (#2145) (Martin Petrov)
- Update shadow examples (#2174) (Martin Petrov)
ShadowLayer
Changes
- Update shadow examples (#2174) (Martin Petrov)
- [ShadowElevations] Update ShadowElevations to be extensible. (#2145) (Martin Petrov)
Snackbar
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
Tabs
Changes
- Add standard Material Design shadow shadow to MDCTabBar (#2148) (Scott Atwood)
- Always call MDCTabBarControllerDelegate methods when a tab is tapped (#2155) (Scott Atwood)
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
TextFields
Changes
- Clear button X value adjustment. (#2176) (Will Larche)
- Fix text fields overlapping labels (#2163) (Will Larche)
- Implementing textFieldShouldClear: (#2169) (Will Larche)
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
- Some alphabetizing. (#2166) (Will Larche)
Themes
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
Typography
Changes
- Remove trailing whitespace everywhere. (#2168) (Adrian Secord)
Release 36.1.0
API Changes
Text fields
- Added
placeholderText
property to control the placeholder text.
Component changes
ActivityIndicator
Changes
Buttons
Changes
- Add tests for MDCButton+Subclassing behaviors (#2136) (Sam Morrison)
- Remove test broken on travis (#2147) (Sam Morrison)
Dialogs
Changes
- Migrate to MDFInternationalization (#2124) (ianegordon)
FlexibleHeader
Changes
- Fix bug where minimumHeight of 0 would result in odd behavior. (#2139) (featherless)
- Fix where we adjust the frame if the safe area changes. (#2146) (Andrés)
- Forward viewWillTransitionToSize events to the flexible header (#2150) (featherless)
- Introduce minMaxHeightIncludesSafeArea. (#2123) (Andrés)
- Revert "Introduce minMaxHeightIncludesSafeArea. (#2123)" (#2161) (Andrés)
TextFields
Changes
- Adding .placeholderText to controllers (#2149) (Will Larche)
- Fixes clear button not updating the character counter. (#2143) (Will Larche)
- Styling doc gif addition. (#2144) (Will Larche)
Themes
Changes
Release 36.0.0
API Changes
Buttons
- Converted elevation methods to use
MDCShadowElevation
type insetad of raw CGFloats.
Palettes
- Palettes require Xcode 8+'s toolchain to compile.
Shadow Elevations
- Introduced the
MDCShadowElevation
typedef for shadow elevation values instead of raw CGFloats.
Component changes
ActivityIndicator
Changes
AppBar
Changes
- Example corrections. (#2108) (Will Larche)
- Fix app bar's top constraint that is buggy on iOS 11.0 (#2103) (Andrés)
- [Catalog] Fixes improper use of Bundle and assets (#2118) (Will Larche)
BottomAppBar
Changes
- Add readme and Swift example (#2040) (Junius Gunaratne)
BottomSheet
Changes
- [Bottom Sheet] Remove script-breaking whitespace from README.md preamble. (Adrian Secord)
- [Catalog] Fixes improper use of Bundle and assets (#2118) (Will Larche)
Buttons
Changes
- Change MDCButton to use MDCShadowElevation type instead of CGFloat. Fixes #2105. (Adrian Secord)
- Restore alpha when re-enabled (#2095) (Robert Moore)
CollectionCells
Changes
Collections
Changes
- Modernize Swift in styling readme. (#2133) (Martin Petrov)
- Update collections to support iPhone X (#1988) (Gauthier Ambard)
- [Mutliple components] Update components that use colors to use MDCPalette. (#2129) (Cody Weaver)
Dialogs
Changes
FlexibleHeader
Changes
- Make sure we update the layout when the safe area changes (#2068) (Andrés)
- [Catalog] Fixes improper use of Bundle and assets (#2118) (Will Larche)
- [Mutliple components] Update components that use colors to use MDCPalette. (#2129) (Cody Weaver)
HeaderStackView
Changes
- [Catalog] Fixes improper use of Bundle and assets (#2118) (Will Larche)
- [Mutliple components] Update components that use colors to use MDCPalette. (#2129) (Cody Weaver)
NavigationBar
Changes
PageControl
Changes
- Fixed crasher when resetting -numberOfPages to 0 (#2132) (Julien Poumailloux)
ShadowElevations
Changes
- Improve Swift support for shadow elevations (#2116) (Junius Gunaratne)
- Partial revert of commit bc582f4 to restore the definition of MDCShadowElevationSwitch . (Adrian Secord)
- [MDCShadowElevations] Remove switch elevation, add bottom navigation bar elevation (#2093) (Junius Gunaratne)
ShadowLayer
Changes
- [ShadowElevations] Improve Swift support for shadow elevations (#2116) (Junius Gunaratne)
Snackbar
Changes
- Move dismissal accessibility hint to .strings file (#2107) (Sam Morrison)
Tabs
Changes
- Invalidate layout on window change (#2122) (Brian Moore)
- MDCTabBarViewController should delegate status bar to children (#2126) (Icycle)
- Remove tint color from themer (#2104) (Junius Gunaratne)
- [Catalog] Fixes improper use of Bundle and assets (#2118) (Will Larche)
- [Mutliple components] Update components that use colors to use MDCPalette. (#2129) (Cody Weaver)
TextFields
Changes
- Examples bug and formatting (#2137) (Will Larche)
- Fix broken MDCMultilineTextField build for iOS 10. (#2100) (Martin Petrov)
- Fixes a broken link. (#2114) (Scott Hyndman)
- [Catalog] Fixes improper use of Bundle and assets (#2118) (Will Larche)
Themes
Changes
- Add documentation for material themes (#2094) (Junius Gunaratne)
Typography
Changes
- Add example using custom font family (#2130) (Cody Weaver)
- Match MDCTypography docs with nullability annotations (#2117) (Sam Morrison)