SwiftyNotifications icon indicating copy to clipboard operation
SwiftyNotifications copied to clipboard

Cannot find type 'CGFloat' in scope in String+Size.swift

Open allensoberano opened this issue 4 years ago • 2 comments

receiving the errors: Cannot find type 'CGFloat' in scope Cannot find type 'UIFont' in scope Cannot find 'CGSize' in scope

I think the String+Size.swift file needs to import UIKit for the CoreGraphics

allensoberano avatar Sep 09 '21 17:09 allensoberano

Hi @allensoberano thanks for creating the issue, please update your pod and let me know the result.

abdullahselek avatar Sep 09 '21 18:09 abdullahselek

Thanks for the quick update but now receiving the error: Thread 1: "Could not load NIB in bundle: 'NSBundle .... app> (loaded)' with name 'SwiftyNotifications'"

I have only used the sample code provided: let notification = SwiftyNotifications.withStyle(style: .info, title: "Swifty Notifications", subtitle: "Highly configurable iOS UIView for presenting notifications that doesn't block the UI", direction: .bottom)

allensoberano avatar Sep 10 '21 05:09 allensoberano