![swift 4 ios 11 status bar blur swift 4 ios 11 status bar blur](https://learnui.design/blog/img/ios/status-bar-transparent.png)
Arrays of Swift enums can't be exposed to Objective-C, and supportedDrawerPositions previously returned an array of PulleyPosition enums. Technical reason: Optional protocol methods require the attribute. If you have questions, please open an issue.
![swift 4 ios 11 status bar blur swift 4 ios 11 status bar blur](https://img.gadgethacks.com/img/93/29/63632209836156/0/hide-status-bar-your-iphone-with-cool-simple-glitch.w1456.jpg)
This was done to allow marking some PulleyDrawerViewControllerDelegate methods as optional so they don't need to be implemented if you aren't using certain positions (or wish to use the default values). Continue to use the static PulleyPosition values as usual and add a default case. This won't affect most uses, but may affect your switch statements. Pulley 2.4.0 changed PulleyPosition from an enum to a class. See this thread for additional information. Although property names have changed, the functionality should work without any significant changes (aside from renaming). Pulley 2.5.0 had significant renaming changes to support new features. See this pull request for the motivation behind this feature. Also in this release, setDrawerContentViewController(controller: UIViewController, position: PulleyPosition? = nil, animated: Bool = true, completion: PulleyAnimationCompletionBlock?) has a new optional parameter position to set a new drawer position the drawer when a new DrawerContentViewController is set.
![swift 4 ios 11 status bar blur swift 4 ios 11 status bar blur](https://koenig-media.raywenderlich.com/uploads/2020/10/UIVisualEffectsView_02.png)
See the pull request here for the motivation behind this feature. This mode behaves in a very similar way to. This mode also has new properties, compactInsets and compactWidth. compact then the only supportedDrawerPositions for the view controller when in. This is an exact replica of the behavior of the Apple Maps drawer, therefor when the currentDisplayMode of the PulleyViewController is. compact to replicate Apple Maps Behavior on the iPhone SE size class devices. The biggest change being the new displayMode of. The base functionality should work without any significant changes. Pulley 2.9.0 has new properties to support a new displayMode.
#SWIFT 4 IOS 11 STATUS BAR BLUR CODE#
1.0.x) in your Podfile or use the code on the branch for that version. If you need an older version of Swift, you can specify it's version (e.g. The master branch follows the latest currently released version of Swift. A library to imitate the drawer in Maps for iOS 10/11.