How telegram app make smooth animation when swipe back?
when telegraphing when swapping backwards, a soft transition still turns out, I will be glad for any help
video
swift animation transition navigationcontroller
add a comment |
when telegraphing when swapping backwards, a soft transition still turns out, I will be glad for any help
video
swift animation transition navigationcontroller
i think its custom navigation animation, can u help me with it?
– Dima
Jan 3 at 12:10
add a comment |
when telegraphing when swapping backwards, a soft transition still turns out, I will be glad for any help
video
swift animation transition navigationcontroller
when telegraphing when swapping backwards, a soft transition still turns out, I will be glad for any help
video
swift animation transition navigationcontroller
swift animation transition navigationcontroller
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
add a comment |
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
add a comment |
3 Answers
3
active
oldest
votes
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.
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
add a comment |
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:
- If you are doing any heavy operations like core data fetch with
heavy data, your transition will take some time present your
controller. - If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.
- Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.
my project very simple, no core data, no NSAtrr, and any heavy methods :(
– Dima
Nov 23 '18 at 12:14
add a comment |
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
}
}
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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:
- If you are doing any heavy operations like core data fetch with
heavy data, your transition will take some time present your
controller. - If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.
- Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.
my project very simple, no core data, no NSAtrr, and any heavy methods :(
– Dima
Nov 23 '18 at 12:14
add a comment |
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:
- If you are doing any heavy operations like core data fetch with
heavy data, your transition will take some time present your
controller. - If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.
- Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.
my project very simple, no core data, no NSAtrr, and any heavy methods :(
– Dima
Nov 23 '18 at 12:14
add a comment |
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:
- If you are doing any heavy operations like core data fetch with
heavy data, your transition will take some time present your
controller. - If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.
- Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.
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:
- If you are doing any heavy operations like core data fetch with
heavy data, your transition will take some time present your
controller. - If you are using any NSAttributedString with NSHTMLTextDocumentType, it will slow down your ViewController's transition.
- Especially these operations might be performed in ViewDidLoad, ViewWillAppear or TableView's delegate/datasource methods.
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
add a comment |
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
add a comment |
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
}
}
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
add a comment |
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
}
}
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
add a comment |
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
}
}
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
}
}
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
i think its custom navigation animation, can u help me with it?
– Dima
Jan 3 at 12:10