Minor changes to the README.

This commit is contained in:
Apple 2019-10-16 12:09:38 -08:00
parent bd2d75c29c
commit 8caf1e1186
2 changed files with 16 additions and 16 deletions

View file

@ -1,12 +1,12 @@
# UIKit Catalog: Creating and Customizing Views and Controls
Customize your app's user interface by using views and controls in UIKit.
Customize the user interface of your iOS and Mac Catalyst apps by using views and controls in UIKit.
## Overview
This sample guides you through several types of customizations that you can do in your iOS app. The sample uses a split view controller architecture for navigating UIKit views and controls. The primary view controller (`MasterViewController`) shows the available views and controls. Selecting one shows the secondary view controller associated with it.
This sample guides you through several types of customizations that you can apply in your iOS and Mac Catalyst apps. The sample uses a split view controller architecture for navigating UIKit views and controls. The primary view controller (`MasterViewController`) shows the available views and controls. Selecting one shows the secondary view controller associated with it.
The name of each secondary view controller reflects its *target item*. For example, the `AlertControllerViewController` class shows how to use a `UIAlertController` object. The only exceptions to this rule are `UISearchBar` and `UIToolbar`; these APIs are demonstrated in multiple view controllers to explain how their controls function and how to customize them. To demonstrate how to manage the complexity of your storyboards, all view controllers are hosted in a separate storyboard and loaded when needed.
The name of each secondary view controller reflects its *target item*. For example, the `AlertControllerViewController` class shows how to use a `UIAlertController` object. The only exceptions to this rule are `UISearchBar` and `UIToolbar`; the sample demonstrates these APIs in multiple view controllers to explain how their controls function and how to customize them. To demonstrate how to manage the complexity of your storyboards, all view controllers are hosted in a separate storyboard and loaded when needed.
This sample demonstrates the following views and controls (several of which are referenced in the sections below):
@ -84,7 +84,7 @@ func showSimpleAlert() {
## Customize the Appearance of Sliders
This sample demonstrates different ways to display a `UISlider`, a control used to select a single value from a continuous range of values. You customize the appearance of a slider by assigning stretchable images for left-side tracking, right-side tracking, and the thumb. In this example, the track image is stretchable and is one pixel wide. Make the track images wider to provide rounded corners, but be sure to set these images' `capInsets` property to allow for them.
This sample demonstrates different ways to display a `UISlider`, a control used to select a single value from a continuous range of values. You customize the appearance of a slider by assigning stretchable images for left-side tracking, right-side tracking, and the thumb. In this example, the track image is stretchable and is one pixel wide. Make the track images wider to provide rounded corners, but be sure to set these images' `capInsets` property to allow room for the corners.
The `configureCustomSlider` function sets up a custom slider:

View file

@ -106,6 +106,7 @@
539C6BAB1F27F4980006C5A9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
539C6BAD1F27F4980006C5A9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/WebViewController.storyboard; sourceTree = "<group>"; };
539C6BB11F27F4A70006C5A9 /* MasterViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MasterViewController.swift; sourceTree = "<group>"; };
53A0E92053A0B87000000001 /* LICENSE.txt */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE.txt; sourceTree = "<group>"; };
53B791D51F854B4700AB2FA6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = Base; path = Base.lproj/content.html; sourceTree = "<group>"; };
53B791D71F854B4700AB2FA6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Base; path = Base.lproj/InfoPlist.strings; sourceTree = "<group>"; };
53B791D91F854B4800AB2FA6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Base; path = Base.lproj/Localizable.strings; sourceTree = "<group>"; };
@ -121,8 +122,7 @@
53CE5AF71F2A8BD000D8A656 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/SwitchViewController.storyboard; sourceTree = "<group>"; };
53CE5AFA1F2A8BEB00D8A656 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/TextFieldViewController.storyboard; sourceTree = "<group>"; };
53DDE73C22776382000006CF /* UIKitCatalog.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = UIKitCatalog.entitlements; sourceTree = "<group>"; };
A5E23920A5E1025000000001 /* SampleCode.xcconfig */ = {isa = PBXFileReference; name = SampleCode.xcconfig; path = Configuration/SampleCode.xcconfig; sourceTree = "<group>"; };
A5EBFB80A5EC59A000000001 /* LICENSE.txt */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE.txt; sourceTree = "<group>"; };
53F9F3B053F9F4A000000001 /* SampleCode.xcconfig */ = {isa = PBXFileReference; name = SampleCode.xcconfig; path = Configuration/SampleCode.xcconfig; sourceTree = "<group>"; };
B50F41071B1D284700E5147D /* StackViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StackViewController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
@ -145,8 +145,8 @@
228DB9F518BC53F1002BA12A /* UIKitCatalog */,
228DB9F418BC53F1002BA12A /* Products */,
53654E212298881100B999C7 /* Frameworks */,
A5E0F2E0A5E0BC9000000001 /* Configuration */,
A5EE7870A5EE774000000001 /* LICENSE */,
53F9F60053F9F90000000001 /* Configuration */,
5600C4205600C74000000001 /* LICENSE */,
);
sourceTree = "<group>";
};
@ -276,18 +276,18 @@
name = Frameworks;
sourceTree = "<group>";
};
A5E0F2E0A5E0BC9000000001 /* Configuration */ = {
53F9F60053F9F90000000001 /* Configuration */ = {
isa = PBXGroup;
children = (
A5E23920A5E1025000000001 /* SampleCode.xcconfig */,
53F9F3B053F9F4A000000001 /* SampleCode.xcconfig */,
);
name = Configuration;
sourceTree = "<group>";
};
A5EE7870A5EE774000000001 /* LICENSE */ = {
5600C4205600C74000000001 /* LICENSE */ = {
isa = PBXGroup;
children = (
A5EBFB80A5EC59A000000001 /* LICENSE.txt */,
53A0E92053A0B87000000001 /* LICENSE.txt */,
);
name = LICENSE;
path = LICENSE;
@ -618,7 +618,7 @@
/* Begin XCBuildConfiguration section */
228DBA0918BC53F1002BA12A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A5E23920A5E1025000000001 /* SampleCode.xcconfig */;
baseConfigurationReference = 53F9F3B053F9F4A000000001 /* SampleCode.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
@ -674,7 +674,7 @@
};
228DBA0A18BC53F1002BA12A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A5E23920A5E1025000000001 /* SampleCode.xcconfig */;
baseConfigurationReference = 53F9F3B053F9F4A000000001 /* SampleCode.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
@ -723,7 +723,7 @@
};
228DBA0C18BC53F1002BA12A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A5E23920A5E1025000000001 /* SampleCode.xcconfig */;
baseConfigurationReference = 53F9F3B053F9F4A000000001 /* SampleCode.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = UIKitCatalog/UIKitCatalog.entitlements;
@ -745,7 +745,7 @@
};
228DBA0D18BC53F1002BA12A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = A5E23920A5E1025000000001 /* SampleCode.xcconfig */;
baseConfigurationReference = 53F9F3B053F9F4A000000001 /* SampleCode.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = UIKitCatalog/UIKitCatalog.entitlements;