alexaubry / alexaubry/BulletinBoard

description text is only on one line it should be multiple lines like on the demo

Đang mở
#101 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Swift
Star
5.3k
Fork
301
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

my page.description text does not show my text on multiple lines only on one line this is my code.

```swift
lazy var bulletinManager: BLTNItemManager = {
page.descriptionLabel?.numberOfLines = 0
page.descriptionText = "Your Rquest was successfully. We will contact you if we have any questions."
page.actionButtonTitle = "Dismiss"
let greenColor = UIColor(red: 0.294, green: 0.85, blue: 0.392, alpha: 1)
page.appearance.actionButtonColor = greenColor
page.appearance.alternativeButtonTitleColor = greenColor
page.image = #imageLiteral(resourceName: "checkMark").tint(with: greenColor)

page.appearance.actionButtonTitleColor = .white
page.isDismissable = false
page.requiresCloseButton = false
page.imageView?.tintColor = greenColor

let rootItem: BLTNItem = page
let bulletin = BLTNItemManager(rootItem: page)
bulletin.backgroundViewStyle = .none
page.actionHandler = { (item: BLTNActionItem) in
bulletin.dismissBulletin(animated: true)
if self.sender != nil {
let views2:[UIView] = [self.mainViewController.searchThisLocationButton]
UIView.animate(views: views2, animations: [], reversed: false, initialAlpha: 0, finalAlpha: 1, delay: 0, animationInterval: 0.0, duration: 0.3) {
}
let views:[UIView] = [self.view]
UIView.animate(views: views, animations: [], reversed: false, initialAlpha: 1, finalAlpha: 0, delay: 0, animationInterval: 0.0, duration: 0.3) {
self.dismiss(animated: false, completion: {})
}

self.sender.view.undimmedView(MainView: self.mainViewController, parentView: self.sender, shouldChangePadding: true, pulleyPosition: self.mainViewController.pulleyLastPosition)
} else {
self.mainViewController.mapView.selectedMarker = nil
self.mainViewController.locationMarker.map = nil
self.mainViewController.mapView.clear()
self.mainViewController.locationMarker = GMSMarker()
self.mainViewController.shouldChangePadding = true
self.mainViewController.pulley.setDrawerPosition(position: self.mainViewController.pulleyLastPosition, animated: true)
let views2:[UIView] = [self.mainViewController.searchThisLocationButton]
UIView.animate(views: views2, animations: [], reversed: false, initialAlpha: 0, finalAlpha: 1, delay: 0, animationInterval: 0.0, duration: 0.3) {
}
self.mainViewController.bottomPulley.nearUserArray = self.mainViewController.mapView.myLocation
let views:[UIView] = [self.view]
UIView.animate(views: views, animations: [], reversed: false, initialAlpha: 1, finalAlpha: 0, delay: 0, animationInterval: 0.0, duration: 0.3) {
self.dismiss(animated: false, completion: {})
}

}

}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.