How telegram app make smooth animation when swipe back?












0














when telegraphing when swapping backwards, a soft transition still turns out, I will be glad for any help



video










share|improve this question
























  • i think its custom navigation animation, can u help me with it?
    – Dima
    Jan 3 at 12:10
















0














when telegraphing when swapping backwards, a soft transition still turns out, I will be glad for any help



video










share|improve this question
























  • i think its custom navigation animation, can u help me with it?
    – Dima
    Jan 3 at 12:10














0












0








0







when telegraphing when swapping backwards, a soft transition still turns out, I will be glad for any help



video










share|improve this question















when telegraphing when swapping backwards, a soft transition still turns out, I will be glad for any help



video







swift animation transition navigationcontroller






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 10:05









Moritz

57.5k19131184




57.5k19131184










asked Nov 23 '18 at 9:52









DimaDima

6




6












  • i think its custom navigation animation, can u help me with it?
    – Dima
    Jan 3 at 12:10


















  • i think its custom navigation animation, can u help me with it?
    – Dima
    Jan 3 at 12:10
















i think its custom navigation animation, can u help me with it?
– Dima
Jan 3 at 12:10




i think its custom navigation animation, can u help me with it?
– Dima
Jan 3 at 12:10












3 Answers
3






active

oldest

votes


















1














This animation is set by default when you want to navigate to previous ViewController if they are embed in NavigationController. So you can just hold the left side of screen (around 20px at the left edge of the phone) and swipe right.






share|improve this answer























  • yes, but try this in telegram app, in tg animation smooth, better, i think it custom
    – Dima
    Nov 23 '18 at 10:11






  • 1




    @Dima Have you tried something? Maybe reason why your animation is not as smooth as in tg app is that you run your app in simulator.
    – Robert Dresler
    Nov 23 '18 at 10:17












  • no, video from real device
    – Dima
    Nov 23 '18 at 12:10










  • @Dima Yes, But you said that animation was better. I supposed you had tried something and it hadn’t been smooth enough so I wrote that one of the reasons could be that you’re running your app in simulator
    – Robert Dresler
    Nov 23 '18 at 12:14












  • can u install telegram on your iphone and swipe back 2-5 times? u understand what I mean) it is also possible in any other application where there is a Navi to do the same swipes ago for comparison
    – Dima
    Nov 23 '18 at 18:04





















0














The animation can be either default one(Navigation flow) or custom one(By animating UIView instead of UIViewController with Navigation flow). But the transition will be smooth only based on the main thread loads that you are handling in your ViewController.



For example:




  1. If you are doing any heavy operations like core data fetch with
    heavy data, your transition will take some time present your
    controller.

  2. If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.

  3. Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.






share|improve this answer





















  • my project very simple, no core data, no NSAtrr, and any heavy methods :(
    – Dima
    Nov 23 '18 at 12:14



















0














Try this



class YourViewcontroller: UIViewController,UIGestureRecognizerDelegate{

override func viewDidLoad() {
super.viewDidLoad()

self.navigationController?.interactivePopGestureRecognizer?.delegate = self
self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true


}


func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}


}





share|improve this answer





















  • yeah, no effect :(
    – Dima
    Nov 23 '18 at 12:13










  • You are using navigation controller right ?
    – Shezad
    Nov 23 '18 at 12:31










  • yes, like apps on video, but in telegram very smooth swipe
    – Dima
    Nov 23 '18 at 16:35











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444289%2fhow-telegram-app-make-smooth-animation-when-swipe-back%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














This animation is set by default when you want to navigate to previous ViewController if they are embed in NavigationController. So you can just hold the left side of screen (around 20px at the left edge of the phone) and swipe right.






share|improve this answer























  • yes, but try this in telegram app, in tg animation smooth, better, i think it custom
    – Dima
    Nov 23 '18 at 10:11






  • 1




    @Dima Have you tried something? Maybe reason why your animation is not as smooth as in tg app is that you run your app in simulator.
    – Robert Dresler
    Nov 23 '18 at 10:17












  • no, video from real device
    – Dima
    Nov 23 '18 at 12:10










  • @Dima Yes, But you said that animation was better. I supposed you had tried something and it hadn’t been smooth enough so I wrote that one of the reasons could be that you’re running your app in simulator
    – Robert Dresler
    Nov 23 '18 at 12:14












  • can u install telegram on your iphone and swipe back 2-5 times? u understand what I mean) it is also possible in any other application where there is a Navi to do the same swipes ago for comparison
    – Dima
    Nov 23 '18 at 18:04


















1














This animation is set by default when you want to navigate to previous ViewController if they are embed in NavigationController. So you can just hold the left side of screen (around 20px at the left edge of the phone) and swipe right.






share|improve this answer























  • yes, but try this in telegram app, in tg animation smooth, better, i think it custom
    – Dima
    Nov 23 '18 at 10:11






  • 1




    @Dima Have you tried something? Maybe reason why your animation is not as smooth as in tg app is that you run your app in simulator.
    – Robert Dresler
    Nov 23 '18 at 10:17












  • no, video from real device
    – Dima
    Nov 23 '18 at 12:10










  • @Dima Yes, But you said that animation was better. I supposed you had tried something and it hadn’t been smooth enough so I wrote that one of the reasons could be that you’re running your app in simulator
    – Robert Dresler
    Nov 23 '18 at 12:14












  • can u install telegram on your iphone and swipe back 2-5 times? u understand what I mean) it is also possible in any other application where there is a Navi to do the same swipes ago for comparison
    – Dima
    Nov 23 '18 at 18:04
















1












1








1






This animation is set by default when you want to navigate to previous ViewController if they are embed in NavigationController. So you can just hold the left side of screen (around 20px at the left edge of the phone) and swipe right.






share|improve this answer














This animation is set by default when you want to navigate to previous ViewController if they are embed in NavigationController. So you can just hold the left side of screen (around 20px at the left edge of the phone) and swipe right.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 23 '18 at 10:54

























answered Nov 23 '18 at 9:58









Robert DreslerRobert Dresler

4,7641526




4,7641526












  • yes, but try this in telegram app, in tg animation smooth, better, i think it custom
    – Dima
    Nov 23 '18 at 10:11






  • 1




    @Dima Have you tried something? Maybe reason why your animation is not as smooth as in tg app is that you run your app in simulator.
    – Robert Dresler
    Nov 23 '18 at 10:17












  • no, video from real device
    – Dima
    Nov 23 '18 at 12:10










  • @Dima Yes, But you said that animation was better. I supposed you had tried something and it hadn’t been smooth enough so I wrote that one of the reasons could be that you’re running your app in simulator
    – Robert Dresler
    Nov 23 '18 at 12:14












  • can u install telegram on your iphone and swipe back 2-5 times? u understand what I mean) it is also possible in any other application where there is a Navi to do the same swipes ago for comparison
    – Dima
    Nov 23 '18 at 18:04




















  • yes, but try this in telegram app, in tg animation smooth, better, i think it custom
    – Dima
    Nov 23 '18 at 10:11






  • 1




    @Dima Have you tried something? Maybe reason why your animation is not as smooth as in tg app is that you run your app in simulator.
    – Robert Dresler
    Nov 23 '18 at 10:17












  • no, video from real device
    – Dima
    Nov 23 '18 at 12:10










  • @Dima Yes, But you said that animation was better. I supposed you had tried something and it hadn’t been smooth enough so I wrote that one of the reasons could be that you’re running your app in simulator
    – Robert Dresler
    Nov 23 '18 at 12:14












  • can u install telegram on your iphone and swipe back 2-5 times? u understand what I mean) it is also possible in any other application where there is a Navi to do the same swipes ago for comparison
    – Dima
    Nov 23 '18 at 18:04


















yes, but try this in telegram app, in tg animation smooth, better, i think it custom
– Dima
Nov 23 '18 at 10:11




yes, but try this in telegram app, in tg animation smooth, better, i think it custom
– Dima
Nov 23 '18 at 10:11




1




1




@Dima Have you tried something? Maybe reason why your animation is not as smooth as in tg app is that you run your app in simulator.
– Robert Dresler
Nov 23 '18 at 10:17






@Dima Have you tried something? Maybe reason why your animation is not as smooth as in tg app is that you run your app in simulator.
– Robert Dresler
Nov 23 '18 at 10:17














no, video from real device
– Dima
Nov 23 '18 at 12:10




no, video from real device
– Dima
Nov 23 '18 at 12:10












@Dima Yes, But you said that animation was better. I supposed you had tried something and it hadn’t been smooth enough so I wrote that one of the reasons could be that you’re running your app in simulator
– Robert Dresler
Nov 23 '18 at 12:14






@Dima Yes, But you said that animation was better. I supposed you had tried something and it hadn’t been smooth enough so I wrote that one of the reasons could be that you’re running your app in simulator
– Robert Dresler
Nov 23 '18 at 12:14














can u install telegram on your iphone and swipe back 2-5 times? u understand what I mean) it is also possible in any other application where there is a Navi to do the same swipes ago for comparison
– Dima
Nov 23 '18 at 18:04






can u install telegram on your iphone and swipe back 2-5 times? u understand what I mean) it is also possible in any other application where there is a Navi to do the same swipes ago for comparison
– Dima
Nov 23 '18 at 18:04















0














The animation can be either default one(Navigation flow) or custom one(By animating UIView instead of UIViewController with Navigation flow). But the transition will be smooth only based on the main thread loads that you are handling in your ViewController.



For example:




  1. If you are doing any heavy operations like core data fetch with
    heavy data, your transition will take some time present your
    controller.

  2. If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.

  3. Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.






share|improve this answer





















  • my project very simple, no core data, no NSAtrr, and any heavy methods :(
    – Dima
    Nov 23 '18 at 12:14
















0














The animation can be either default one(Navigation flow) or custom one(By animating UIView instead of UIViewController with Navigation flow). But the transition will be smooth only based on the main thread loads that you are handling in your ViewController.



For example:




  1. If you are doing any heavy operations like core data fetch with
    heavy data, your transition will take some time present your
    controller.

  2. If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.

  3. Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.






share|improve this answer





















  • my project very simple, no core data, no NSAtrr, and any heavy methods :(
    – Dima
    Nov 23 '18 at 12:14














0












0








0






The animation can be either default one(Navigation flow) or custom one(By animating UIView instead of UIViewController with Navigation flow). But the transition will be smooth only based on the main thread loads that you are handling in your ViewController.



For example:




  1. If you are doing any heavy operations like core data fetch with
    heavy data, your transition will take some time present your
    controller.

  2. If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.

  3. Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.






share|improve this answer












The animation can be either default one(Navigation flow) or custom one(By animating UIView instead of UIViewController with Navigation flow). But the transition will be smooth only based on the main thread loads that you are handling in your ViewController.



For example:




  1. If you are doing any heavy operations like core data fetch with
    heavy data, your transition will take some time present your
    controller.

  2. If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.

  3. Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 10:25









NatarajanNatarajan

2,25131025




2,25131025












  • my project very simple, no core data, no NSAtrr, and any heavy methods :(
    – Dima
    Nov 23 '18 at 12:14


















  • my project very simple, no core data, no NSAtrr, and any heavy methods :(
    – Dima
    Nov 23 '18 at 12:14
















my project very simple, no core data, no NSAtrr, and any heavy methods :(
– Dima
Nov 23 '18 at 12:14




my project very simple, no core data, no NSAtrr, and any heavy methods :(
– Dima
Nov 23 '18 at 12:14











0














Try this



class YourViewcontroller: UIViewController,UIGestureRecognizerDelegate{

override func viewDidLoad() {
super.viewDidLoad()

self.navigationController?.interactivePopGestureRecognizer?.delegate = self
self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true


}


func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}


}





share|improve this answer





















  • yeah, no effect :(
    – Dima
    Nov 23 '18 at 12:13










  • You are using navigation controller right ?
    – Shezad
    Nov 23 '18 at 12:31










  • yes, like apps on video, but in telegram very smooth swipe
    – Dima
    Nov 23 '18 at 16:35
















0














Try this



class YourViewcontroller: UIViewController,UIGestureRecognizerDelegate{

override func viewDidLoad() {
super.viewDidLoad()

self.navigationController?.interactivePopGestureRecognizer?.delegate = self
self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true


}


func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}


}





share|improve this answer





















  • yeah, no effect :(
    – Dima
    Nov 23 '18 at 12:13










  • You are using navigation controller right ?
    – Shezad
    Nov 23 '18 at 12:31










  • yes, like apps on video, but in telegram very smooth swipe
    – Dima
    Nov 23 '18 at 16:35














0












0








0






Try this



class YourViewcontroller: UIViewController,UIGestureRecognizerDelegate{

override func viewDidLoad() {
super.viewDidLoad()

self.navigationController?.interactivePopGestureRecognizer?.delegate = self
self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true


}


func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}


}





share|improve this answer












Try this



class YourViewcontroller: UIViewController,UIGestureRecognizerDelegate{

override func viewDidLoad() {
super.viewDidLoad()

self.navigationController?.interactivePopGestureRecognizer?.delegate = self
self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true


}


func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}


}






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 10:52









ShezadShezad

528312




528312












  • yeah, no effect :(
    – Dima
    Nov 23 '18 at 12:13










  • You are using navigation controller right ?
    – Shezad
    Nov 23 '18 at 12:31










  • yes, like apps on video, but in telegram very smooth swipe
    – Dima
    Nov 23 '18 at 16:35


















  • yeah, no effect :(
    – Dima
    Nov 23 '18 at 12:13










  • You are using navigation controller right ?
    – Shezad
    Nov 23 '18 at 12:31










  • yes, like apps on video, but in telegram very smooth swipe
    – Dima
    Nov 23 '18 at 16:35
















yeah, no effect :(
– Dima
Nov 23 '18 at 12:13




yeah, no effect :(
– Dima
Nov 23 '18 at 12:13












You are using navigation controller right ?
– Shezad
Nov 23 '18 at 12:31




You are using navigation controller right ?
– Shezad
Nov 23 '18 at 12:31












yes, like apps on video, but in telegram very smooth swipe
– Dima
Nov 23 '18 at 16:35




yes, like apps on video, but in telegram very smooth swipe
– Dima
Nov 23 '18 at 16:35


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444289%2fhow-telegram-app-make-smooth-animation-when-swipe-back%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Basket-ball féminin

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...

I want to find a topological embedding $f : X rightarrow Y$ and $g: Y rightarrow X$, yet $X$ is not...