mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-11 08:50:24 +00:00
44 lines
1.8 KiB
Swift
44 lines
1.8 KiB
Swift
//
|
|
// Constants
|
|
// ASDKgram-Swift
|
|
//
|
|
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
|
// This source code is licensed under the BSD-style license found in the
|
|
// LICENSE file in the /ASDK-Licenses directory of this source tree. An additional
|
|
// grant of patent rights can be found in the PATENTS file in the same directory.
|
|
//
|
|
// Modifications to this file made after 4/13/2017 are: Copyright (c) 2017-present,
|
|
// Pinterest, Inc. Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// swiftlint:disable nesting
|
|
|
|
import UIKit
|
|
|
|
struct Constants {
|
|
struct Unsplash {
|
|
struct URLS {
|
|
static let Host = "https://api.unsplash.com/"
|
|
static let PopularEndpoint = "photos?order_by=popular"
|
|
static let SearchEndpoint = "photos/search?geo=" //latitude,longitude,radius<units>
|
|
static let UserEndpoint = "photos?user_id="
|
|
static let ConsumerKey = "&client_id=3b99a69cee09770a4a0bbb870b437dbda53efb22f6f6de63714b71c4df7c9642"
|
|
static let ImagesPerPage = 30
|
|
}
|
|
}
|
|
|
|
struct CellLayout {
|
|
static let FontSize: CGFloat = 14
|
|
static let HeaderHeight: CGFloat = 50
|
|
static let UserImageHeight: CGFloat = 30
|
|
static let HorizontalBuffer: CGFloat = 10
|
|
static let VerticalBuffer: CGFloat = 5
|
|
static let InsetForAvatar = UIEdgeInsets(top: HorizontalBuffer, left: 0, bottom: HorizontalBuffer, right: HorizontalBuffer)
|
|
static let InsetForHeader = UIEdgeInsets(top: 0, left: HorizontalBuffer, bottom: 0, right: HorizontalBuffer)
|
|
static let InsetForFooter = UIEdgeInsets(top: VerticalBuffer, left: HorizontalBuffer, bottom: VerticalBuffer, right: HorizontalBuffer)
|
|
}
|
|
}
|