Open maxhis opened 4 years ago
Use this instead,
override var popupHeight: CGFloat
{
return 100.0
}
override var popupTopCornerRadius: CGFloat
{
return 10.0
}
@sanket003 It seems a Swift version issue, I'm using 5.0 and the BottomPopup
is using 4.2. The 3 methods are actually properties in BottomPopupViewController
.
My workaround is to copy the source code of the library, instead of using CocoaPods. Ugly but works. The override properties look like:
override var popupHeight: CGFloat {
get {
return vkScreenHeight * 0.8
}
}
override var popupPresentDuration: Double {
get {
return 0.25
}
}
override var popupDismissDuration: Double {
get {
return 0.25
}
}
@sanket003 Are you still using CocoaPods for the library?
@sanket003 Are you still using CocoaPods for the library?
Yes. I'm using CocoaPods.
I subclass the
BottomPopupViewController
and override the following 3 methods. I can be built on my local, but failed on the build server with Fastlane. The following errors occurred:The weird thing is it can be built if I delete the
override
keyword of the methods(of course the functions take no effects), which lead build fail on my local.Both my local Mac and the build server running Xcode Version 11.3.1 (11C504) with CocoaPods version 1.8.4.
Invested two days for the issue, and can't get it to work on both sides. Any help or advice will be appreciated.