FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ASCKit/Sources/ASCKit/Constants.swift at develop · Blackjacx/ASCKit · GitHub
Blackjacx
/
ASCKit
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
5
Code
Issues
1
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ASCKit
/
Sources
/
ASCKit
/
Constants.swift
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (25 loc) · 646 Bytes
Breadcrumbs
ASCKit
/
Sources
/
ASCKit
/
Constants.swift
Copy path
File metadata and controls
30 lines (25 loc) · 646 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// Constants.swift
// ASCKit
//
// Created by Stefan Herold on 08.02.21.
//
import
Foundation
public
enum
Constants
{
/// The max allowed page size by Apple is `200`
public
static
let
defaultPageSize
:
UInt
=
200
public
static
let
maxAllowedPageSize
:
UInt
=
200
public
static
func
defaultLimit
(
_ givenLimit
:
UInt
?
)
->
UInt
{
guard
let
givenLimit
else
{
return
defaultPageSize
}
return
min
(
givenLimit
,
maxAllowedPageSize
)
}
}
#if canImport(UIKit)
import
UIKit
extension
Constants
{
public
static
let
buttonSize
:
CGFloat
=
44
public
static
let
raster
:
CGFloat
=
12
}
#endif
Back
|
FazBrowse Home
|
New Git URL