目次
Xcode の新機能
A
B
C
CTFont
イニシャライザ
init(CTFontUIFontType, size: CGFloat)
init(CTFontDescriptor, size: CGFloat)
init(CFString, size: CGFloat)
init(CTFontUIFontType, size: CGFloat, language: CFString?)
init(CTFontDescriptor, transform: CGAffineTransform)
init(CFString, transform: CGAffineTransform)
init(font: CTFont, string: CFString, range: CFRange)
init(font: CTFont, string: CFString, range: CFRange, language: CFString?)
Comment
CustomDebugStringConvertible
インスタンスプロパティ
var debugDescription: String
var debugDescription: String
CustomStringConvertible
インスタンスプロパティ
var description: String
var description: String
var description: String
var description: String
型の反射をカスタマイズする
CustomReflectable
CustomLeafReflectable
CustomPlaygroundDisplayConvertible
typealias PlaygroundQuickLook
macro DebugDescription()
ReferenceConvertible
Calendar
enum Calendar.Identifier
識別子 (ID)
case buddhist
case chinese
case coptic
case ethiopicAmeteAlem
case ethiopicAmeteMihret
case gregorian
case hebrew
case indian
case islamic
case islamicCivil
case islamicTabular
case islamicUmmAlQura
case iso8601
case japanese
case persian
case republicOfChina
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
カレンダー識別子の比較
static func == (Calendar.Identifier, Calendar.Identifier) -> Bool
static func != (Calendar.Identifier, Calendar.Identifier) -> Bool
インスタンスプロパティ
var debugDescription: String
ユーザのカレンダーを取得
static var autoupdatingCurrent: Calendar
static var current: Calendar
コンポーネントの抽出
func date(Date, matchesComponents: DateComponents) -> Bool
func component(Calendar.Component, from: Date) -> Int
func dateComponents(Set<Calendar.Component>, from: Date) -> DateComponents
func dateComponents(Set<Calendar.Component>, from: Date, to: Date) -> DateComponents
func dateComponents(Set<Calendar.Component>, from: DateComponents, to: DateComponents) -> DateComponents
func dateComponents(in: TimeZone, from: Date) -> DateComponents
enum Calendar.Component
年と月の指定
case era
case year
case yearForWeekOfYear
case quarter
case month
週と日の指定
case weekOfYear
case weekOfMonth
case weekday
case weekdayOrdinal
case day
時間、分、秒の指定
case hour
case minute
case second
case nanosecond
カレンダーとタイムゾーンの指定
case calendar
case timeZone
コンポーネントの比較
static func != (Calendar.Component, Calendar.Component) -> Bool
列挙型 Case
case dayOfYear
case isLeapMonth
インスタンスプロパティ
var hashValue: Int
インスタンスメソッド
func hash(into: inout Hasher)
演算子関数
static func == (Calendar.Component, Calendar.Component) -> Bool
カレンダー情報の取得
var identifier: Calendar.Identifier
var locale: Locale?
var firstWeekday: Int
var minimumDaysInFirstWeek: Int
var timeZone: TimeZone
func maximumRange(of: Calendar.Component) -> Range<Int>?
func minimumRange(of: Calendar.Component) -> Range<Int>?
func ordinality(of: Calendar.Component, in: Calendar.Component, for: Date) -> Int?
func range(of: Calendar.Component, in: Calendar.Component, for: Date) -> Range<Int>?
日付のスキャン
func startOfDay(for: Date) -> Date
func enumerateDates(startingAfter: Date, matching: DateComponents, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, direction: Calendar.SearchDirection, using: (Date?, Bool, inout Bool) -> Void)
func nextDate(after: Date, matching: DateComponents, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, direction: Calendar.SearchDirection) -> Date?
enum Calendar.MatchingPolicy
列挙型 Case
case nextTime
case nextTimePreservingSmallerComponents
case previousTimePreservingSmallerComponents
case strict
イニシャライザ
init(from: any Decoder)
インスタンスプロパティ
var hashValue: Int
インスタンスメソッド
func encode(to: any Encoder)
func hash(into: inout Hasher)
演算子関数
static func != (Calendar.MatchingPolicy, Calendar.MatchingPolicy) -> Bool
static func == (Calendar.MatchingPolicy, Calendar.MatchingPolicy) -> Bool
enum Calendar.RepeatedTimePolicy
列挙型 Case
case first
case last
イニシャライザ
init(from: any Decoder)
インスタンスプロパティ
var hashValue: Int
インスタンスメソッド
func encode(to: any Encoder)
func hash(into: inout Hasher)
演算子関数
static func != (Calendar.RepeatedTimePolicy, Calendar.RepeatedTimePolicy) -> Bool
static func == (Calendar.RepeatedTimePolicy, Calendar.RepeatedTimePolicy) -> Bool
コンポーネントから日付を計算
func date(from: DateComponents) -> Date?
func date(byAdding: DateComponents, to: Date, wrappingComponents: Bool) -> Date?
func date(byAdding: Calendar.Component, value: Int, to: Date, wrappingComponents: Bool) -> Date?
func date(bySetting: Calendar.Component, value: Int, of: Date) -> Date?
func date(bySettingHour: Int, minute: Int, second: Int, of: Date, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, direction: Calendar.SearchDirection) -> Date?
間隔の計算
func dateInterval(of: Calendar.Component, for: Date) -> DateInterval?
func dateInterval(of: Calendar.Component, start: inout Date, interval: inout TimeInterval, for: Date) -> Bool
func dateIntervalOfWeekend(containing: Date) -> DateInterval?
func dateIntervalOfWeekend(containing: Date, start: inout Date, interval: inout TimeInterval) -> Bool
func nextWeekend(startingAfter: Date, direction: Calendar.SearchDirection) -> DateInterval?
func nextWeekend(startingAfter: Date, start: inout Date, interval: inout TimeInterval, direction: Calendar.SearchDirection) -> Bool
enum Calendar.SearchDirection
列挙型 Case
case backward
case forward
インスタンスプロパティ
var hashValue: Int
インスタンスメソッド
func hash(into: inout Hasher)
演算子関数
static func != (Calendar.SearchDirection, Calendar.SearchDirection) -> Bool
static func == (Calendar.SearchDirection, Calendar.SearchDirection) -> Bool
日付の比較
func compare(Date, to: Date, toGranularity: Calendar.Component) -> ComparisonResult
func isDate(Date, equalTo: Date, toGranularity: Calendar.Component) -> Bool
func isDate(Date, inSameDayAs: Date) -> Bool
func isDateInToday(Date) -> Bool
func isDateInTomorrow(Date) -> Bool
func isDateInYesterday(Date) -> Bool
func isDateInWeekend(Date) -> Bool
カレンダーの比較
static func == (Calendar, Calendar) -> Bool
static func != (Calendar, Calendar) -> Bool
AM と PM のシンボルを取得
var amSymbol: String
var pmSymbol: String
曜日のシンボルを取得
var weekdaySymbols: [String]
var shortWeekdaySymbols: [String]
var veryShortWeekdaySymbols: [String]
var standaloneWeekdaySymbols: [String]
var shortStandaloneWeekdaySymbols: [String]
var veryShortStandaloneWeekdaySymbols: [String]
月のシンボルを取得
var monthSymbols: [String]
var shortMonthSymbols: [String]
var veryShortMonthSymbols: [String]
var standaloneMonthSymbols: [String]
var shortStandaloneMonthSymbols: [String]
var veryShortStandaloneMonthSymbols: [String]
四半期のシンボルを取得
var quarterSymbols: [String]
var shortQuarterSymbols: [String]
var standaloneQuarterSymbols: [String]
var shortStandaloneQuarterSymbols: [String]
紀元のシンボルを取得
var eraSymbols: [String]
var longEraSymbols: [String]
カレンダーの説明
var description: String
var debugDescription: String
var customMirror: Mirror
var hashValue: Int
コード化と復号化
func encode(to: any Encoder)
init(from: any Decoder)
参照型の使用
class NSCalendar
typealias Calendar.ReferenceType
イニシャライザ
init(identifier: Calendar.Identifier)
インスタンスメソッド
func dates(byAdding: DateComponents, startingAt: Date, in: Range<Date>?, wrappingComponents: Bool) -> Sendable & Sequence<Date>
func dates(byAdding: Calendar.Component, value: Int, startingAt: Date, in: Range<Date>?, wrappingComponents: Bool) -> Sendable & Sequence<Date>
func dates(byMatching: DateComponents, startingAt: Date, in: Range<Date>?, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, direction: Calendar.SearchDirection) -> Sendable & Sequence<Date>
func hash(into: inout Hasher)
struct Calendar.RecurrenceRule
イニシャライザ
init(calendar: Calendar, frequency: Calendar.RecurrenceRule.Frequency, interval: Int, end: Calendar.RecurrenceRule.End, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, months: [Calendar.RecurrenceRule.Month], daysOfTheYear: [Int], daysOfTheMonth: [Int], weeks: [Int], weekdays: [Calendar.RecurrenceRule.Weekday], hours: [Int], minutes: [Int], seconds: [Int], setPositions: [Int])
init(from: any Decoder)
インスタンスプロパティ
var calendar: Calendar
var daysOfTheMonth: [Int]
var daysOfTheYear: [Int]
var end: Calendar.RecurrenceRule.End
var frequency: Calendar.RecurrenceRule.Frequency
var hours: [Int]
var interval: Int
var matchingPolicy: Calendar.MatchingPolicy
var minutes: [Int]
var months: [Calendar.RecurrenceRule.Month]
var repeatedTimePolicy: Calendar.RepeatedTimePolicy
var seconds: [Int]
var setPositions: [Int]
var weekdays: [Calendar.RecurrenceRule.Weekday]
var weeks: [Int]
インスタンスメソッド
func encode(to: any Encoder)
func recurrences(of: Date, in: Range<Date>?) -> Sendable & Sequence<Date>
型メソッド
static func daily(calendar: Calendar, interval: Int, end: Calendar.RecurrenceRule.End, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, months: [Calendar.RecurrenceRule.Month], daysOfTheMonth: [Int], weekdays: [Calendar.RecurrenceRule.Weekday], hours: [Int], minutes: [Int], seconds: [Int], setPositions: [Int]) -> Calendar.RecurrenceRule
static func hourly(calendar: Calendar, interval: Int, end: Calendar.RecurrenceRule.End, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, months: [Calendar.RecurrenceRule.Month], daysOfTheYear: [Int], daysOfTheMonth: [Int], weekdays: [Calendar.RecurrenceRule.Weekday], hours: [Int], minutes: [Int], seconds: [Int], setPositions: [Int]) -> Calendar.RecurrenceRule
static func minutely(calendar: Calendar, interval: Int, end: Calendar.RecurrenceRule.End, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, months: [Calendar.RecurrenceRule.Month], daysOfTheYear: [Int], daysOfTheMonth: [Int], weekdays: [Calendar.RecurrenceRule.Weekday], hours: [Int], minutes: [Int], seconds: [Int], setPositions: [Int]) -> Calendar.RecurrenceRule
static func monthly(calendar: Calendar, interval: Int, end: Calendar.RecurrenceRule.End, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, months: [Calendar.RecurrenceRule.Month], daysOfTheMonth: [Int], weekdays: [Calendar.RecurrenceRule.Weekday], hours: [Int], minutes: [Int], seconds: [Int], setPositions: [Int]) -> Calendar.RecurrenceRule
static func weekly(calendar: Calendar, interval: Int, end: Calendar.RecurrenceRule.End, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, months: [Calendar.RecurrenceRule.Month], weekdays: [Calendar.RecurrenceRule.Weekday], hours: [Int], minutes: [Int], seconds: [Int], setPositions: [Int]) -> Calendar.RecurrenceRule
static func yearly(calendar: Calendar, interval: Int, end: Calendar.RecurrenceRule.End, matchingPolicy: Calendar.MatchingPolicy, repeatedTimePolicy: Calendar.RepeatedTimePolicy, months: [Calendar.RecurrenceRule.Month], daysOfTheYear: [Int], daysOfTheMonth: [Int], weeks: [Int], weekdays: [Calendar.RecurrenceRule.Weekday], hours: [Int], minutes: [Int], seconds: [Int], setPositions: [Int]) -> Calendar.RecurrenceRule
演算子関数
static func != (Calendar.RecurrenceRule, Calendar.RecurrenceRule) -> Bool
static func == (Calendar.RecurrenceRule, Calendar.RecurrenceRule) -> Bool
構造体
struct Calendar.RecurrenceRule.End
イニシャライザ
init(from: any Decoder)
型プロパティ
static var never: Calendar.RecurrenceRule.End
インスタンスメソッド
func encode(to: any Encoder)
型メソッド
static func afterDate(Date) -> Calendar.RecurrenceRule.End
static func afterOccurrences(Int) -> Calendar.RecurrenceRule.End
演算子関数
static func != (Calendar.RecurrenceRule.End, Calendar.RecurrenceRule.End) -> Bool
static func == (Calendar.RecurrenceRule.End, Calendar.RecurrenceRule.End) -> Bool
struct Calendar.RecurrenceRule.Month
型エイリアス
typealias Calendar.RecurrenceRule.Month.IntegerLiteralType
イニシャライザ
init(Int, isLeap: Bool)
init(from: any Decoder)
init(integerLiteral: Int)
インスタンスプロパティ
var index: Int
var isLeap: Bool
インスタンスメソッド
func encode(to: any Encoder)
演算子関数
static func != (Calendar.RecurrenceRule.Month, Calendar.RecurrenceRule.Month) -> Bool
static func == (Calendar.RecurrenceRule.Month, Calendar.RecurrenceRule.Month) -> Bool
列挙型
enum Calendar.RecurrenceRule.Frequency
型エイリアス
typealias Calendar.RecurrenceRule.Frequency.RawValue
列挙型 Case
case daily
case hourly
case minutely
case monthly
case weekly
case yearly
イニシャライザ
init(from: any Decoder)
init?(rawValue: Int)
インスタンスプロパティ
var hashValue: Int
var rawValue: Int
インスタンスメソッド
func encode(to: any Encoder)
func hash(into: inout Hasher)
演算子関数
static func != (Calendar.RecurrenceRule.Month, Calendar.RecurrenceRule.Month) -> Bool
enum Calendar.RecurrenceRule.Weekday
列挙型 Case
case every(Locale.Weekday)
case nth(Int, Locale.Weekday)
イニシャライザ
init(from: any Decoder)
演算子関数
static func != (Calendar.RecurrenceRule.WeekDay, Calendar.RecurrenceRule.WeekDay) -> Bool
static func == (Calendar.RecurrenceRule.Weekday, Calendar.RecurrenceRule.Weekday) -> Bool
enum CInterop
型エイリアス
typealias Char
typealias Mode
typealias PlatformChar
typealias PlatformUnicodeEncoding
typealias mode_t
コピーする
protocol Copyable
protocol BitwiseCopyable
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
XYZ