Tapani Saarinen
Tapani Saarinen
Not sure if it's the same issue, but in Android when rotating the device to landscape the window scaled outside of the visible screen area. So if I position something...
Another similar: ``` 0 libswiftCore.dylib 0x37c03fa10 swift::RefCounts::formWeakReference 1 libswiftCore.dylib 0x37c01b4b8 [inlined] swift_weakInit 2 libswiftCore.dylib 0x37c01b4b8 swift_weakInit 3 Starscream 0x103f89428 WSEngine.stop (WSEngine.swift:75) 4 Starscream 0x103f8ab1c WSEngine 5 Starscream 0x103f82664 WebSocket.disconnect (WebSocket.swift:139)...
``` 0 libdispatch.dylib 0x19641f3b8 _os_object_retain 1 libswiftDispatch.dylib 0x34e7f7ef0 OS_dispatch_queue.async 2 Starscream 0x104929864 WSEngine.write (WSEngine.swift:91) 3 Starscream 0x10492ac44 [inlined] WSEngine.write (WSEngine.swift:87) 4 Starscream 0x10492ac44 WSEngine (:85) 5 Starscream 0x104922e30 [inlined] WebSocket.write...
``` 0 libobjc.A.dylib 0x191127f90 objc_destructInstance 1 libswiftCore.dylib 0x355f630e4 [inlined] swift_deallocClassInstance 2 libswiftCore.dylib 0x355f630e4 swift_deallocClassInstance 3 libswiftCore.dylib 0x355f63008 _swift_release_dealloc 4 libswiftCore.dylib 0x355f63d5c swift::RefCounts::doDecrement 5 Starscream 0x104706a08 WSEngine.deinit 6 Starscream 0x104706ab4 WSEngine.__deallocating_deinit...
How do I activate this? ⌘+Enter or ctrl+enter on mac only adds a new line to the code.
I'm not maintaining this fork anymore. Probably should remove it as it's still Swift 2.
Sorry, I don't maintain this fork anymore.
Currently it's not in CocoaPods, so you have to add it to your podfile like this: pod 'MWPhotoBrowserSwift', :git => 'https://github.com/tapz/MWPhotoBrowserSwift.git'
In what function are you doing that? Try viewWillAppear. My port of the MWPhotoBrowser to Swift is not general purpose in any way. I have only tested that it works...
This is how I show the photo browsers: ``` class MyViewController: UITableViewController, PhotoBrowserDelegate { private var photos = [MWPhoto]() ... func showImageBrowser(images: [MyImage]) { photos.removeAll(keepCapacity: true) for image in images...