Skip to content

Commit 57a75dd

Browse files
authored
Merge pull request #10 from twof/fix/ios103
Constraints and background fixed for 10.3
2 parents f660215 + 969598c commit 57a75dd

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

SimplePagedViewFramework.xcodeproj/project.pbxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,10 @@
446446
isa = XCBuildConfiguration;
447447
buildSettings = {
448448
CLANG_ENABLE_MODULES = YES;
449-
CODE_SIGN_IDENTITY = "";
449+
CODE_SIGN_IDENTITY = "iPhone Developer";
450450
CODE_SIGN_STYLE = Automatic;
451451
DEFINES_MODULE = YES;
452+
DEVELOPMENT_TEAM = P2PP2EM79F;
452453
DYLIB_COMPATIBILITY_VERSION = 1;
453454
DYLIB_CURRENT_VERSION = 1;
454455
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -476,6 +477,7 @@
476477
CODE_SIGN_IDENTITY = "";
477478
CODE_SIGN_STYLE = Automatic;
478479
DEFINES_MODULE = YES;
480+
DEVELOPMENT_TEAM = P2PP2EM79F;
479481
DYLIB_COMPATIBILITY_VERSION = 1;
480482
DYLIB_CURRENT_VERSION = 1;
481483
DYLIB_INSTALL_NAME_BASE = "@rpath";

SimplePagedViewFramework/Example/SimplePagedViewExample/SimplePagedViewExample.xcodeproj/project.pbxproj

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,27 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
24E7CF0321FD0407009E6E79 /* SimplePagedViewFramework.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = B2C689AF21C99CC0000031AB /* SimplePagedViewFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1011
B2C6899721C99938000031AB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2C6899621C99938000031AB /* AppDelegate.swift */; };
1112
B2C6899921C99938000031AB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2C6899821C99938000031AB /* ViewController.swift */; };
1213
B2C6899E21C9993A000031AB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B2C6899D21C9993A000031AB /* Assets.xcassets */; };
1314
B2C689A121C9993B000031AB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B2C6899F21C9993B000031AB /* LaunchScreen.storyboard */; };
14-
B2C689B021C99CC0000031AB /* SimplePagedViewFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2C689AF21C99CC0000031AB /* SimplePagedViewFramework.framework */; };
15+
B2C689B021C99CC0000031AB /* SimplePagedViewFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B2C689AF21C99CC0000031AB /* SimplePagedViewFramework.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
1516
/* End PBXBuildFile section */
1617

18+
/* Begin PBXCopyFilesBuildPhase section */
19+
24E7CF0221FD03ED009E6E79 /* CopyFiles */ = {
20+
isa = PBXCopyFilesBuildPhase;
21+
buildActionMask = 2147483647;
22+
dstPath = "";
23+
dstSubfolderSpec = 10;
24+
files = (
25+
24E7CF0321FD0407009E6E79 /* SimplePagedViewFramework.framework in CopyFiles */,
26+
);
27+
runOnlyForDeploymentPostprocessing = 0;
28+
};
29+
/* End PBXCopyFilesBuildPhase section */
30+
1731
/* Begin PBXFileReference section */
1832
B2C6899321C99938000031AB /* SimplePagedViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SimplePagedViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
1933
B2C6899621C99938000031AB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -83,6 +97,7 @@
8397
B2C6898F21C99938000031AB /* Sources */,
8498
B2C6899021C99938000031AB /* Frameworks */,
8599
B2C6899121C99938000031AB /* Resources */,
100+
24E7CF0221FD03ED009E6E79 /* CopyFiles */,
86101
);
87102
buildRules = (
88103
);
@@ -213,7 +228,7 @@
213228
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
214229
GCC_WARN_UNUSED_FUNCTION = YES;
215230
GCC_WARN_UNUSED_VARIABLE = YES;
216-
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
231+
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
217232
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
218233
MTL_FAST_MATH = YES;
219234
ONLY_ACTIVE_ARCH = YES;
@@ -268,7 +283,7 @@
268283
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
269284
GCC_WARN_UNUSED_FUNCTION = YES;
270285
GCC_WARN_UNUSED_VARIABLE = YES;
271-
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
286+
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
272287
MTL_ENABLE_DEBUG_INFO = NO;
273288
MTL_FAST_MATH = YES;
274289
SDKROOT = iphoneos;
@@ -283,7 +298,9 @@
283298
buildSettings = {
284299
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
285300
CODE_SIGN_STYLE = Automatic;
301+
DEVELOPMENT_TEAM = P2PP2EM79F;
286302
INFOPLIST_FILE = SimplePagedViewExample/Info.plist;
303+
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
287304
LD_RUNPATH_SEARCH_PATHS = (
288305
"$(inherited)",
289306
"@executable_path/Frameworks",
@@ -300,7 +317,9 @@
300317
buildSettings = {
301318
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
302319
CODE_SIGN_STYLE = Automatic;
320+
DEVELOPMENT_TEAM = P2PP2EM79F;
303321
INFOPLIST_FILE = SimplePagedViewExample/Info.plist;
322+
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
304323
LD_RUNPATH_SEARCH_PATHS = (
305324
"$(inherited)",
306325
"@executable_path/Frameworks",

SimplePagedViewFramework/Source/Views/PageDotsView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ private extension PageDotsView {
148148

149149
if let previousDot = previousDot {
150150
constraints.append(dot.leadingAnchor.constraint(equalTo: previousDot.trailingAnchor, constant: dotSize))
151+
} else {
152+
constraints.append(dot.leadingAnchor.constraint(equalTo: dotContainer.leadingAnchor))
151153
}
152154

153155
previousDot = dot
@@ -174,6 +176,7 @@ private extension PageDotsView {
174176
let frame = CGRect(x: 0, y: 0, width: dotSize, height: dotSize)
175177
let color = index == self.currentDot ? currentDotColor : dotColor
176178
let dot: DotView = DotView(frame: frame, mainColor: color)
179+
dot.backgroundColor = .clear
177180

178181
dot.accessibilityIdentifier = "DotAt\(index)"
179182

0 commit comments

Comments
 (0)