Daltron / NotificationBanner

The easiest way to display highly customizable in app notification banners in iOS
MIT License
4.77k stars 660 forks source link

MAC Catalyst support #349

Closed perbrondum closed 3 years ago

perbrondum commented 3 years ago

Banner title line is overlapping with window title.

CMiller3 commented 3 years ago

Hot fix:

After declaring a FloatingNotificationBanner, I was able to change the position by editing the banner.frame after .show

let banner = FloatingNotificationBanner(title: title, subtitle: subtitle, style: style)

banner.show(queuePosition: .front, bannerPosition: BannerPosition.top, queue: .default, on: nil, edgeInsets: UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 5), cornerRadius: 5, shadowColor: .black, shadowOpacity: 0.5, shadowBlurRadius: 5, shadowCornerRadius: 5)

// LINE OF NOTE: banner.frame = CGRect(origin: YOUR POINT, size: YOUR SIZE)

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed due to inactivity.

logansease commented 3 years ago
        banner.show()

        #if targetEnvironment(macCatalyst)
        banner.frame = CGRect(x: banner.frame.origin.x, y: banner.frame.origin.y + 40, width: banner.frame.size.width, height: banner.frame.size.height)
        #endif