开源软件名称(OpenSource Name):jonathantribouharet/JTMaterialTransition开源软件地址(OpenSource Url):https://github.com/jonathantribouharet/JTMaterialTransition开源编程语言(OpenSource Language):Swift 92.1%开源软件介绍(OpenSource Introduction):JTMaterialTransitionAn iOS transition for controllers based on material design. InstallationWith CocoaPods, add this line to your Podfile.
ScreenshotsUsageBasic usageimport UIKit
import JTMaterialTransition
class ViewController: UIViewController {
weak var presentControllerButton: UIButton?
var transition: JTMaterialTransition?
override func viewDidLoad() {
super.viewDidLoad()
self.transition = JTMaterialTransition(animatedView: self.presentControllerButton)
}
func didPresentControllerButtonTouch () {
let controller = SecondViewController()
controller.modalPresentationStyle = .custom
controller.transitioningDelegate = self.transition
self.present(controller, animated: true, completion: nil)
}
} NotesThe
WarningThe controller presented must have a Requirements
AuthorLicenseJTMaterialTransition is released under the MIT license. See the LICENSE file for more info. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论