Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

New error alert #313

Closed
rnystrom opened this issue Sep 17, 2017 · 22 comments
Closed

New error alert #313

rnystrom opened this issue Sep 17, 2017 · 22 comments
Labels
🐛 bug Unintended behaviour within the app

Comments

@rnystrom
Copy link
Member

iPhone X makes the status bar alert outdated. Need to find something new. Any ideas?

@Sherlouk
Copy link
Member

Same style of alert but pops up as a toast above tab bar or cover nav bar? Or we just address it on a case by case basic and try to give more contextual error messages

@rnystrom
Copy link
Member Author

Really like the toast idea. Lets go hunting!

Sent with GitHawk

@Sherlouk
Copy link
Member

https://github.com/devxoul/Toaster - Very quick search is showing this, gives appareance overrides so with a couple factory methods we can distinguish between errors/other messages?

@Sherlouk Sherlouk added 🐛 bug Unintended behaviour within the app ios11 labels Sep 17, 2017
@kimdv
Copy link

kimdv commented Oct 2, 2017

I have made a pull request #483 that implements https://github.com/devxoul/Toaster

I looks nice, maybe some more minor layout changes

@kimdv
Copy link

kimdv commented Oct 4, 2017

As @rnystrom mentioned in #483 we should make our own. 😄

@rnystrom rnystrom added iphoneX and removed ios11 labels Oct 9, 2017
@rnystrom
Copy link
Member Author

rnystrom commented Oct 9, 2017

Started work on this on the flight home. Will have something pretty soon! Came up w/ some fun ideas. Building it in a way so it can be a separate pod. Love @BasThomas's idea.

@rnystrom
Copy link
Member Author

Quick preview of what I've got in action:

wgde5803

Features:

  • Totally configurable (text, font, colors, layout spacing)
  • Interactive
    • Rubber-band effect when swiping up
    • Swipe down to dismiss

TODO:

  • Auto dismiss after duration
  • Delegate when tapping button
  • Fix multi-line label
  • Tune physics

Learned quite a bit about UIDynamics and Auto Layout w/ this. Been fun!

@BasThomas
Copy link
Collaborator

Oh wow, looks great! Looking forward to seeing how you implemented it 😀

Sent with GitHawk

@Sherlouk
Copy link
Member

That image was very confusing from the app's point of view, it just looks like an image 😅

Looks great though! (when looked at on GitHub)

@BasThomas
Copy link
Collaborator

Yeah, the “Quick preview of what I’ve got in action:” definitely helped though. Gif support please! 😁

@Sherlouk
Copy link
Member

It's weird though because NY photo viewer supports GIFs, so... it should've worked 🤔 Maybe we have to enable it some how

https://github.com/rnystrom/GitHawk/blob/master/Podfile.lock#L17-L22

@BasThomas
Copy link
Collaborator

Oh that's weird. No idea.

@Sherlouk
Copy link
Member

@BasThomas Looks like you have to add ANIMATED_GIF_SUPPORT as a compiler flag to get it working. If you get five minutes 😉

https://github.com/NYTimes/NYTPhotoViewer/blob/master/NYTPhotoViewer/NYTScalingImageView.m#L21

@BasThomas
Copy link
Collaborator

Can we close this now, @rnystrom?

@BasThomas
Copy link
Collaborator

@Sherlouk that gives me a "no such file or directory" 😂
What am I missing?

screen shot 2017-10-13 at 10 11 05

screen shot 2017-10-13 at 10 11 08

@Sherlouk
Copy link
Member

For reasons I don't understand, ya have to prefix them with -D so -DANIMATED_GIF_SUPPORT

@BasThomas
Copy link
Collaborator

BasThomas commented Oct 13, 2017

@BasThomas BasThomas mentioned this issue Oct 13, 2017
@Sherlouk
Copy link
Member

I don't understand because we don't even specify a subspec: https://github.com/rnystrom/GitHawk/blob/master/Podfile#L12

and it doesn't specify a default subspec 🤔 Maybe reference the NYTPhotoViewer/AnimatedGifSupport directly?

@Sherlouk
Copy link
Member

Also @BasThomas https://bugs.swift.org/browse/SR-909 -- Is this applicable?

@BasThomas
Copy link
Collaborator

Doesn't look like it. #if ANIMATED_GIF_SUPPORT is true.

@Sherlouk
Copy link
Member

Not too familiar with ObjC, is #ifdef handled differently?

Is it getting to https://github.com/NYTimes/NYTPhotoViewer/blob/master/NYTPhotoViewer/NYTScalingImageView.m#L125?

@BasThomas
Copy link
Collaborator

Let's move this over to #75

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Unintended behaviour within the app
Projects
None yet
Development

No branches or pull requests

4 participants