iOS Swift Tutorial: Create Custom Segue Transition Animations 11/24 🎄

  Рет қаралды 42,176

Brian Advent

Brian Advent

Күн бұрын

Пікірлер: 50
@vandanpatel3395
@vandanpatel3395 8 жыл бұрын
Thanks, Brian! You are teaching things which are not easily available anywhere else.
@RobertHarrison
@RobertHarrison 6 жыл бұрын
Hey man not going to lie, I stumble upon your videos all the time looking for help with things in xcode and when I hear your chill intro I instantly know I can sit back and relax, because you solve all my problems everytime lol. Love the info, love the chill vibes, Love you
@NeverwinterMoon
@NeverwinterMoon 5 жыл бұрын
Great guide. But I have a question - why is this approach better than UIViewControllerTransitioningDelegate though? There, the code for animation is separate from anything else. In your example you call present with animation = false. While using UIViewControllerTransitioningDelegate you would call present before anything else with animation = true. And that would trigger animationController:forPresented or animationController:forDismissed implementation of UIViewControllerTransitioningDelegate
@fsdolphin
@fsdolphin 6 жыл бұрын
Great tutorial, thanks a lot. For some reason, I didn't have to add the unwind method in the ViewController and the animation to go back works just fine, is this something new in iOS 11?
@bigmtnstudio
@bigmtnstudio 7 жыл бұрын
This is brilliant, Brian. Thanks for this! Just what I needed!
@BrianAdvent
@BrianAdvent 7 жыл бұрын
Cool! Nice to hear that you could use the transitions for your own project!
@abcd98768
@abcd98768 7 жыл бұрын
We need learn door opening animation which is AMAZING could you make a tutorial for that please bro ?!
@MohammedEnnabah
@MohammedEnnabah 8 жыл бұрын
Thanks a lot Brian. I have a question about this one, how can I make the scale begin from the button, like when I press on the button, It's actually scale from it not from the centre of the source VC. Thanks again for those great tutorials.
@seyhahiem4541
@seyhahiem4541 7 жыл бұрын
pretty good tutorial. could you guide to learn more detail about transitioning?
@roipropertypathfinderuae
@roipropertypathfinderuae 6 жыл бұрын
Hi Brian, I've watched your video and it work brilliant while you not put some elements to view controllers. In my case I've put one image view and it shows me error :Warning: Attempt to present on whose view is not in the window hierarchy! Is there an opportunity to fix it??
@secnate
@secnate 7 жыл бұрын
This fixed all the problems that have been frustrating me!!!
@mmtf
@mmtf 8 жыл бұрын
I would like to requedt something. Could you elaborate on the things you do more generally. What the overriding function unwind does for ex? or when is it called? why did the program call it which of the actions youve done set the viewcontroller to call that function? Details like these are important to me. If you could be more explaining in the upcoming videos I'd be glad.
@bhagyashingale5663
@bhagyashingale5663 6 жыл бұрын
How about using popToViewController ? Will it eliminate the code on the main view?
@davirv820
@davirv820 6 жыл бұрын
This is a really good video, thank you for explaining in such detail. However I have tried to implement this going from a tab bar controller to a page view controller and I can't get it to work. Moving to the page controller works fine but when I unwind back to a controller in the tab bar the screen appears for a mili second then go's black. Any ideas what I have done from?
@samuelsenigl
@samuelsenigl 4 жыл бұрын
Just add this row: toViewController.modalPresentationStyle = UIModalPresentationStyle.fullScreen before: fromViewController.present(toViewController, animated: false, completion: nil)
@lapusan2008
@lapusan2008 6 жыл бұрын
great tutorial! I have one question: destination.view was added to src.view.superView. when animation completes, shouldn’t destination.view.removeFromSuperview() get called in the completion handler of UIView.animate function? thanks
@williamhuang6067
@williamhuang6067 7 жыл бұрын
Hi Brian, I just tried not to override the unwind func, and the animation of dismissing works well exactly like if we override it. can you explain about it? why should we override it while it works fine if don't override it?
@krutomjer
@krutomjer 8 жыл бұрын
Amazing, thanks Brian. I now have to spend some more time on this so I can understand every thing in it.
@BrianAdvent
@BrianAdvent 8 жыл бұрын
I am glad you liked it and thanks for your motivating comments!
@krutomjer
@krutomjer 8 жыл бұрын
No problem, I truly appreciate what you're doing for the community.
@goblinnilgob9706
@goblinnilgob9706 8 жыл бұрын
Thanks for the new tutorial. One suggestion; could you zoom to code while you record?
@wilsonbalderrama
@wilsonbalderrama 8 жыл бұрын
Thanks Brian I heard about this implementation but I've never implemented or seen it so thanks for sharing this useful video. I have a doubt in the class ScaleSegue line 52, I thought superview had to remove toViewController.view since this view is going to be removed but instead your inserting it.
@mmtf
@mmtf 8 жыл бұрын
Wilson Raul Balderrama Gomez yes it is inserted but then the other is dismissed. dismissing i believe is the same with removing
@informaticlover9579
@informaticlover9579 8 жыл бұрын
How to pass datas between vc (with or without nav VC)? Can you do a tutorial on it ,please?
@CrippleX89
@CrippleX89 7 жыл бұрын
Override prepareForSegue in the source viewcontroller and use: if let destination = segue.destination as? DestinationViewControllerClass { destination.property = value } That way, you can easily distinguish between different destinations, get the destination instance in its own type and set the required properties.
@rajaikumar9889
@rajaikumar9889 6 жыл бұрын
Can we do it without segue... I mean programmatically
@josephfrancis1672
@josephfrancis1672 7 жыл бұрын
Hey, how do I do the animation if viewController that is doing the segue is a child controller? I tried using "let source = self.source.parent!" ; it worked, but the segue is extremely slow.
@seanwei4025
@seanwei4025 5 жыл бұрын
how about push from right to left?
@thenhobes
@thenhobes 8 жыл бұрын
Hi Brian, love the intro to your videos. Any tips on creating something similar?
@BrianAdvent
@BrianAdvent 8 жыл бұрын
Thanks a lot! Do you mean the door animation?
@thenhobes
@thenhobes 8 жыл бұрын
Actually, I mean the intro from 0:00 to 0:03 :)
@BrianAdvent
@BrianAdvent 8 жыл бұрын
It was created in After Effects. Maybe this helps you too: lesterbanks.com/2014/07/easily-creating-accented-geometric-explosions-effects/
@thenhobes
@thenhobes 8 жыл бұрын
Thank you, Brian!
@bioshock14
@bioshock14 7 жыл бұрын
Can you do a tutorial in regard to the door animation or can you point me in the right direction of where I can learn this, thank you.
@kasunNimanthaHewawas
@kasunNimanthaHewawas 7 жыл бұрын
after segue second view controller delegate methods call twice.How to fix that ?
@699088g
@699088g 7 жыл бұрын
Great tutorial!
@marcb396
@marcb396 7 жыл бұрын
Simply Wonderful!
@ianvisorr
@ianvisorr 8 жыл бұрын
Thanks Brian!
@aave865
@aave865 6 жыл бұрын
Thanks so much!
@alex741321
@alex741321 4 жыл бұрын
You should show what you want to accomplish before jumping right into code
@guruitcompany
@guruitcompany 8 жыл бұрын
Thank you, very beautiful👌
@MostafaSh1
@MostafaSh1 7 жыл бұрын
you are the best !
@BrianAdvent
@BrianAdvent 7 жыл бұрын
Thanks Man!
@StellarCats
@StellarCats 7 жыл бұрын
thks for your video !
@ix901x
@ix901x 7 жыл бұрын
I got black screen when I add TabBar , after dismissed Second Viewcontroller , Anyone know how to solve this problem ?
@samuelsenigl
@samuelsenigl 4 жыл бұрын
Try to add this row: toViewController.modalPresentationStyle = UIModalPresentationStyle.fullScreen before: fromViewController.present(toViewController, animated: false, completion: nil)
@mccsokinawaappdev607
@mccsokinawaappdev607 5 жыл бұрын
A+
@alexanderlester7455
@alexanderlester7455 6 жыл бұрын
I'm extremely surprised that I can't find any GitHub Repo containing a collection of different segues... Am I the only one experiencing this?
@donk7283
@donk7283 7 жыл бұрын
love your videos. but you really move fast without explaining why you do what you do. I guess you assume people know but they don't
iOS Swift Tutorial: UITextView Tips and Tricks 12/24 🎄
17:33
Brian Advent
Рет қаралды 22 М.
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 188 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 103 МЛН
The Art of Code - Dylan Beattie
1:00:49
NDC Conferences
Рет қаралды 4,7 МЛН
iOS Swift Tutorial: Create a Counting UILabel Animation 04/24  🎄
19:03
You Won’t Believe What Excel’s Copilot Can Do! (new updates)
10:37
One CPU To Rule Them All - Ryzen 7 9800X3D Review
12:47
Linus Tech Tips
Рет қаралды 1 МЛН
iOS Swift Tutorial: Simple and Cool UIView Animations
20:27
Brian Advent
Рет қаралды 85 М.
Animations & Transitions - Custom Animations in iOS - iOS Dev Scout
21:39
How to Become a Good Backend Engineer (Fundamentals)
26:40
Hussein Nasser
Рет қаралды 531 М.
The Fastest Laptop on Earth! [MacBook Pro 16 M4 MAX Review]
16:20
The Tech Chap
Рет қаралды 26 М.
How to Animate a Button Menu (iOS, Xcode 8, Swift 3)
20:02
Mark Moeykens
Рет қаралды 56 М.
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 188 МЛН