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

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 50

  • @RobertHarrison
    @RobertHarrison 6 ปีที่แล้ว +3

    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

  • @vandanpatel3395
    @vandanpatel3395 8 ปีที่แล้ว

    Thanks, Brian! You are teaching things which are not easily available anywhere else.

  • @bigmtnstudio
    @bigmtnstudio 8 ปีที่แล้ว +8

    This is brilliant, Brian. Thanks for this! Just what I needed!

    • @BrianAdvent
      @BrianAdvent  8 ปีที่แล้ว +3

      Cool! Nice to hear that you could use the transitions for your own project!

  • @secnate
    @secnate 7 ปีที่แล้ว

    This fixed all the problems that have been frustrating me!!!

  • @abcd98768
    @abcd98768 7 ปีที่แล้ว +5

    We need learn door opening animation which is AMAZING could you make a tutorial for that please bro ?!

  • @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.

  • @seyhahiem4541
    @seyhahiem4541 8 ปีที่แล้ว

    pretty good tutorial. could you guide to learn more detail about transitioning?

  • @NeverwinterMoon
    @NeverwinterMoon 6 ปีที่แล้ว

    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

  • @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.

  • @goblinnilgob9706
    @goblinnilgob9706 8 ปีที่แล้ว +1

    Thanks for the new tutorial.
    One suggestion; could you zoom to code while you record?

  • @seanwei4025
    @seanwei4025 5 ปีที่แล้ว

    how about push from right to left?

  • @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?

  • @informaticlover9579
    @informaticlover9579 8 ปีที่แล้ว +1

    How to pass datas between vc (with or without nav VC)?
    Can you do a tutorial on it ,please?

    • @CrippleX89
      @CrippleX89 7 ปีที่แล้ว +2

      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.

  • @bhagyashingale5663
    @bhagyashingale5663 6 ปีที่แล้ว

    How about using popToViewController ? Will it eliminate the code on the main view?

  • @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.

  • @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??

  • @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

  • @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

  • @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?

  • @699088g
    @699088g 7 ปีที่แล้ว

    Great tutorial!

  • @marcb396
    @marcb396 8 ปีที่แล้ว

    Simply Wonderful!

  • @rajaikumar9889
    @rajaikumar9889 6 ปีที่แล้ว

    Can we do it without segue... I mean programmatically

  • @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)

  • @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.

  • @kasunNimanthaHewawas
    @kasunNimanthaHewawas 7 ปีที่แล้ว

    after segue second view controller delegate methods call twice.How to fix that ?

  • @ianvisorr
    @ianvisorr 8 ปีที่แล้ว

    Thanks Brian!

  • @guruitcompany
    @guruitcompany 8 ปีที่แล้ว

    Thank you, very beautiful👌

  • @thenhobes
    @thenhobes 8 ปีที่แล้ว +1

    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 8 ปีที่แล้ว +1

      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.

  • @alex741321
    @alex741321 4 ปีที่แล้ว

    You should show what you want to accomplish before jumping right into code

  • @aave865
    @aave865 6 ปีที่แล้ว

    Thanks so much!

  • @ix901x
    @ix901x 7 ปีที่แล้ว +1

    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)

  • @StellarCats
    @StellarCats 7 ปีที่แล้ว

    thks for your video !

  • @mccsokinawaappdev607
    @mccsokinawaappdev607 5 ปีที่แล้ว

    A+

  • @MostafaSh1
    @MostafaSh1 8 ปีที่แล้ว

    you are the best !

  • @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