mirror of https://github.com/SnapKit/SnapKit
Fix up interface layout direction
This commit is contained in:
parent
997e0e5970
commit
18851b7ecd
|
@ -20,3 +20,20 @@
|
|||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
#if os(iOS)
|
||||
import UIKit
|
||||
typealias InterfaceLayoutDirection = UIUserInterfaceLayoutDirection
|
||||
#else
|
||||
import AppKit
|
||||
typealias InterfaceLayoutDirection = NSUserInterfaceLayoutDirection
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Config that can be used to configure Snap
|
||||
*/
|
||||
public struct Config {
|
||||
|
||||
public static var interfaceLayoutDirection = InterfaceLayoutDirection.LeftToRight
|
||||
|
||||
}
|
Loading…
Reference in New Issue