Githawk: New error alert

Created on 17 Sep 2017  Β·  22Comments  Β·  Source: GitHawkApp/GitHawk

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

πŸ› bug

Most helpful comment

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!

All 22 comments

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

Really like the toast idea. Lets go hunting!

Sent with GitHawk

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?

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

I looks nice, maybe some more minor layout changes

As @rnystrom mentioned in #483 we should make our own. πŸ˜„

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.

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!

Oh wow, looks great! Looking forward to seeing how you implemented it πŸ˜€

Sent with GitHawk

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)

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

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

Oh that's weird. No idea.

@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

Can we close this now, @rnystrom?

@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

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

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?

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

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

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

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

Let's move this over to #75

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BasThomas picture BasThomas  Β·  3Comments

BasThomas picture BasThomas  Β·  3Comments

weyert picture weyert  Β·  3Comments

rnystrom picture rnystrom  Β·  3Comments

rizwankce picture rizwankce  Β·  3Comments