hyperoslo / Gallery

📹 Your next favorite image and video picker
Other
1.42k stars 273 forks source link

set tabsToShow crash #74

Closed whisper-bye closed 6 years ago

whisper-bye commented 6 years ago
Gallery.Config.tabsToShow = [.cameraTab]

gallery = GalleryController()
gallery.delegate = self
present(gallery, animated: true, completion: nil)
Constraint.on(
  pageIndicator.leftAnchor.constraint(equalTo: pageIndicator.superview!.leftAnchor),
  pageIndicator.rightAnchor.constraint(equalTo: pageIndicator.superview!.rightAnchor),
  pageIndicator.heightAnchor.constraint(equalToConstant: 40)
)

pageIndicator.superview!.leftAnchor
Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value
onmyway133 commented 6 years ago

@whisper-bye Hi, can you check the latest commit on master? Then I will make new release

whisper-bye commented 6 years ago

it looks greet, thx.