Changelog History
-
v3.3.1 Changes
April 02, 2019π Swift 5 support
π This release adds Swift 5 and Xcode 10.2 support
-
v3.3.0 Changes
January 18, 2019Swift 4.2
β Added Swift 4.2 compatibility
π± πΊ tvOS Support
β Added tvOS support
LocationSymbolIcon
π This release dropped custom LocationSymbolIcon support
-
v3.2.2 Changes
May 24, 2018π Small bug fixes
-
v3.2.1 Changes
March 29, 2018β‘οΈ Small Swift 4.1 updates π¨βπ»
-
v3.2.0 Changes
February 28, 2018FlyoverKit
π The Engine of the
STLocationRequestController
has been fully replaced with the newly released FlyoverKit.π§ Button Configuration
π§ The configuration for the
allow
andnot-now
button has been expanded. You can now set the following properties to customize the buttons to your needs.- title
- titleColor
- font
- backgroundColor
- highlightedBackgroundColor
- highlightedTitleColor
- borderColor
- borderWidth
- cornerRadius
-
v3.1.0 Changes
February 17, 2018Carthage
π With this release
STLocationRequest
is also available via Carthage.π Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update $ brew install carthage
To integrate STLocationRequest into your Xcode project using Carthage, specify it in your
Cartfile
:github "SvenTiigi/STLocationRequest"
β‘οΈ Run
carthage update --platform iOS
to build the framework and drag the builtSTLocationRequest.framework
,SnapKit.framework
andSwiftIconFont.framwork
into your Xcode project.π On your application targetsβ βBuild Phasesβ settings tab, click the β+β icon and choose βNew Run Script Phaseβ and add the Framework paths (for all Frameworks) as mentioned in Carthage Getting started Step 4, 5 and 6
π§ Configuration
π§ The
STLocationRequestController.Configuration
struct has been slightly modified in order to have a consistent access to specific variables.config.titleText // No longer availableconfig.title.text = "Use this π"
-
v3.0.1 Changes
January 30, 2018π Fixed a bug when
STLocationRequestController
is presented from landscape orientation -
v3.0.0 Changes
January 29, 2018π Version 3.0
π¨ The
STLocationRequestController
has been completely refactored and improved. The most important changes are the construction and configuration for anSTLocationRequestController
object as well as the newonEvent
closure property. The following usage code snippet will show how to migrate to the3.0
version.Usage
import STLocationRequest// Initialize STLocationRequestController with STLocationRequestController.Configurationlet locationRequestController = STLocationRequestController { config in config.titleText = "We need your location for some awesome features" config.allowButtonTitle = "Alright" config.notNowButtonTitle = "Not now" config.mapViewAlpha = 0.9 config.backgroundColor = UIColor.lightGray config.authorizeType = .requestWhenInUseAuthorization}// Get notified on STLocationRequestController.EventslocationRequestController.onEvent = { event inif case .locationRequestAuthorized = event { // Location Request Authorized π } }// Present STLocationRequestControllerlocationRequestController.present(onViewController: self)
π Objective-C Support?
π The Objective-C support has been removed in this version to be compatible with the Swift coding standards. If you need to use the
STLocationRequestController
inside an Objective-C Project you should bind the Pod to the2.0
Version:pod 'STLocationRequest', '~\> 2.0'
-
v2.0.0 Changes
November 19, 2017π Version 2.0
β‘οΈ STLocationRequest is now updated to version 2.0 π
- π The most important part is the removed Storyboard, which was former used to layout the UI.
π± All UI layouting is now being done in code π¨βπ». - π± STLocationRequestController has now even more properties to customize it π€
- π Improved Objective-C support
- π Improved Notch-Support for iPhone X
- π The most important part is the removed Storyboard, which was former used to layout the UI.
-
v1.5.1 Changes
November 12, 2017β Added Swift 4.0 compatibility