Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit f7a5a17

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents 2695fe0 + 32dda0c commit f7a5a17

12 files changed

+60
-25
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
# 2.0.0 (MaterialMotionTransitioning)
2+
3+
The library has been renamed to MaterialMotionTransitioning.
4+
5+
## New features
6+
7+
- `TransitionContext` now exposes a `presentationController` property.
8+
9+
## Source changes
10+
11+
* [Rename the library to MaterialMotionTransitioning.](https://github.com/material-motion/material-motion-transitioning-objc/commit/ce3e250b052fc762ed8682cd2efa9ede437707d4) (Jeff Verkoeyen)
12+
* [Expose the presentation controller in TransitionContext (#26)](https://github.com/material-motion/material-motion-transitioning-objc/commit/f643cd58b845e2b428e3ef81020c18ea7fd387f6) (Eric Tang)
13+
14+
## API changes
15+
16+
Auto-generated by running:
17+
18+
apidiff origin/stable release-candidate objc src/MaterialMotionTransitioning.h
19+
20+
## MDMTransitionContext
21+
22+
*new* property: `presentationController` in `MDMTransitionContext`
23+
24+
## Non-source changes
25+
26+
* [Set version to 1.0.0.](https://github.com/material-motion/material-motion-transitioning-objc/commit/5f2804b0213d7720e43152abf0893d6f5fb50048) (Jeff Verkoeyen)
27+
28+
---
29+
30+
Prior releases under the library name `Transitioning`.
31+
132
# 1.1.1
233

334
This is a patch fix release to address build issues within Google's build environment.

Transitioning.podspec renamed to MaterialMotionTransitioning.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
2-
s.name = "Transitioning"
2+
s.name = "MaterialMotionTransitioning"
33
s.summary = "Light-weight API for building UIViewController transitions."
4-
s.version = "1.1.1"
4+
s.version = "2.0.0"
55
s.authors = "The Material Motion Authors"
66
s.license = "Apache 2.0"
77
s.homepage = "https://github.com/material-motion/transitioning-objc"

Podfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
workspace 'Transitioning.xcworkspace'
1+
workspace 'MaterialMotionTransitioning.xcworkspace'
22
use_frameworks!
33

44
target "TransitionsCatalog" do
55
pod 'CatalogByConvention'
6-
pod 'Transitioning', :path => './'
6+
pod 'MaterialMotionTransitioning', :path => './'
77

88
project 'examples/apps/Catalog/TransitionsCatalog.xcodeproj'
99
end
1010

1111
target "UnitTests" do
12-
pod 'Transitioning', :path => './'
12+
pod 'MaterialMotionTransitioning', :path => './'
1313

1414
project 'examples/apps/Catalog/TransitionsCatalog.xcodeproj'
1515
end
@@ -18,7 +18,7 @@ post_install do |installer|
1818
installer.pods_project.targets.each do |target|
1919
target.build_configurations.each do |configuration|
2020
configuration.build_settings['SWIFT_VERSION'] = "3.0"
21-
if target.name.start_with?("Transitioning")
21+
if target.name.start_with?("MaterialMotion")
2222
configuration.build_settings['WARNING_CFLAGS'] ="$(inherited) -Wall -Wcast-align -Wconversion -Werror -Wextra -Wimplicit-atomic-properties -Wmissing-prototypes -Wno-sign-conversion -Wno-unused-parameter -Woverlength-strings -Wshadow -Wstrict-selector-match -Wundeclared-selector -Wunreachable-code"
2323
end
2424
end

Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
PODS:
22
- CatalogByConvention (2.1.1)
3-
- Transitioning (1.1.1)
3+
- MaterialMotionTransitioning (2.0.0)
44

55
DEPENDENCIES:
66
- CatalogByConvention
7-
- Transitioning (from `./`)
7+
- MaterialMotionTransitioning (from `./`)
88

99
EXTERNAL SOURCES:
10-
Transitioning:
10+
MaterialMotionTransitioning:
1111
:path: "./"
1212

1313
SPEC CHECKSUMS:
1414
CatalogByConvention: c3a5319de04250a7cd4649127fcfca5fe3322a43
15-
Transitioning: ea1a8225812799c7ff07630af17008ab5e306bf3
15+
MaterialMotionTransitioning: e89c47d3a019d1cec945c4ab8653cfc417430e8f
1616

17-
PODFILE CHECKSUM: 1949e62e9d70d554783c0bb931d6b52780775cfb
17+
PODFILE CHECKSUM: a339d385d38b29a0052f32984921c8567d0c57e5
1818

1919
COCOAPODS: 1.2.1

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Transitioning
1+
# Material Motion Transitioning
22

33
> Light-weight API for building UIViewController transitions.
44
55
[![Build Status](https://travis-ci.org/material-motion/transitioning-objc.svg?branch=develop)](https://travis-ci.org/material-motion/transitioning-objc)
66
[![codecov](https://codecov.io/gh/material-motion/transitioning-objc/branch/develop/graph/badge.svg)](https://codecov.io/gh/material-motion/transitioning-objc)
7-
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Transitioning.svg)](https://cocoapods.org/pods/Transitioning)
8-
[![Platform](https://img.shields.io/cocoapods/p/Transitioning.svg)](http://cocoadocs.org/docsets/Transitioning)
9-
[![Docs](https://img.shields.io/cocoapods/metrics/doc-percent/Transitioning.svg)](http://cocoadocs.org/docsets/Transitioning)
7+
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/MaterialMotionTransitioning.svg)](https://cocoapods.org/pods/MaterialMotionTransitioning)
8+
[![Platform](https://img.shields.io/cocoapods/p/MaterialMotionTransitioning.svg)](http://cocoadocs.org/docsets/MaterialMotionTransitioning)
9+
[![Docs](https://img.shields.io/cocoapods/metrics/doc-percent/MaterialMotionTransitioning.svg)](http://cocoadocs.org/docsets/MaterialMotionTransitioning)
1010

1111
This library standardizes the way transitions are built on iOS so that with a single line of code
1212
you can pick the custom transition you want to use:
@@ -73,9 +73,9 @@ final class CustomTransition: NSObject, Transition {
7373
>
7474
> gem install cocoapods
7575
76-
Add `Transitioning` to your `Podfile`:
76+
Add `MaterialMotionTransitioning` to your `Podfile`:
7777
78-
pod 'Transitioning'
78+
pod 'MaterialMotionTransitioning'
7979
8080
Then run the following command:
8181
@@ -85,7 +85,7 @@ Then run the following command:
8585
8686
Import the framework:
8787
88-
@import Transitioning;
88+
@import MaterialMotionTransitioning;
8989
9090
You will now have access to all of the APIs.
9191
@@ -97,7 +97,7 @@ commands:
9797
git clone https://github.com/material-motion/transitioning-objc.git
9898
cd transitioning-objc
9999
pod install
100-
open Transitioning.xcworkspace
100+
open MaterialMotionTransitioning.xcworkspace
101101
102102
## Guides
103103
@@ -112,7 +112,7 @@ commands:
112112
> animation, interaction, and presentation controller. These controllers are then expected to
113113
> implement the transition's motion.
114114
115-
Transitioning provides a thin layer atop these protocols with the following advantages:
115+
MaterialMotionTransitioning provides a thin layer atop these protocols with the following advantages:
116116
117117
- Every view controller has its own **transition controller**. This encourages choosing the
118118
transition based on the context.

examples/CustomPresentationExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import UIKit
18-
import Transitioning
18+
import MaterialMotionTransitioning
1919

2020
// This example demonstrates how to make use of presentation controllers to build a flexible modal
2121
// transition that supports presenting view controllers at aribtrary frames on the screen.

examples/FadeExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import UIKit
18-
import Transitioning
18+
import MaterialMotionTransitioning
1919

2020
// This example demonstrates the minimal path to building a custom transition using the Material
2121
// Motion Transitioning APIs in Swift. The essential steps have been documented below.

src/MDMTransitionContext.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,8 @@ NS_SWIFT_NAME(TransitionContext)
7979
*/
8080
@property(nonatomic, strong, readonly, nonnull) UIView *containerView;
8181

82+
/**
83+
The presentation view controller for this transition.
84+
*/
85+
@property(nonatomic, strong, readonly, nullable) UIPresentationController *presentationController;
8286
@end
File renamed without changes.

src/private/MDMViewControllerTransitionContext.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020

2121
@implementation MDMViewControllerTransitionContext {
2222
id<UIViewControllerContextTransitioning> _transitionContext;
23-
UIPresentationController *_presentationController;
2423
}
2524

2625
@synthesize direction = _direction;
2726
@synthesize sourceViewController = _sourceViewController;
2827
@synthesize backViewController = _backViewController;
2928
@synthesize foreViewController = _foreViewController;
29+
@synthesize presentationController = _presentationController;
3030

3131
- (nonnull instancetype)initWithTransition:(nonnull id<MDMTransition>)transition
3232
direction:(MDMTransitionDirection)direction

0 commit comments

Comments
 (0)