Skip to content

Commit

Permalink
Merge branch 'master' into feature/68-ios14-style-widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
krugerk authored Dec 16, 2024
2 parents 8e6a768 + cf9a774 commit 8270d23
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 114 deletions.
2 changes: 1 addition & 1 deletion BeeKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<key>CFBundleShortVersionString</key>
<string>6.7</string>
<key>CFBundleVersion</key>
<string>53</string>
<string>54</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion BeeKitTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<key>CFBundleShortVersionString</key>
<string>6.7</string>
<key>CFBundleVersion</key>
<string>53</string>
<string>54</string>
</dict>
</plist>
21 changes: 4 additions & 17 deletions BeeSwift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,6 @@
remoteGlobalIDString = A196CB131AE4142E00B90A3E;
remoteInfo = BeeSwift;
};
E57BE6F32655EBE000BA540B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A196CB0C1AE4142E00B90A3E /* Project object */;
proxyType = 1;
remoteGlobalIDString = E57BE6DF2655EBD900BA540B;
remoteInfo = BeeKit;
};
E57BE7122655F00200BA540B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A196CB0C1AE4142E00B90A3E /* Project object */;
Expand Down Expand Up @@ -847,7 +840,6 @@
);
dependencies = (
E5F7C4A9260FC5300095684F /* PBXTargetDependency */,
E57BE6F42655EBE000BA540B /* PBXTargetDependency */,
E57BE7132655F00200BA540B /* PBXTargetDependency */,
9B93301E2CE55C7F00720B19 /* PBXTargetDependency */,
);
Expand Down Expand Up @@ -1342,11 +1334,6 @@
target = A196CB131AE4142E00B90A3E /* BeeSwift */;
targetProxy = E57BE6EC2655EBE000BA540B /* PBXContainerItemProxy */;
};
E57BE6F42655EBE000BA540B /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = E57BE6DF2655EBD900BA540B /* BeeKit */;
targetProxy = E57BE6F32655EBE000BA540B /* PBXContainerItemProxy */;
};
E57BE7132655F00200BA540B /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = E57BE6DF2655EBD900BA540B /* BeeKit */;
Expand Down Expand Up @@ -1492,7 +1479,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 53;
CURRENT_PROJECT_VERSION = 54;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand Down Expand Up @@ -1557,7 +1544,7 @@
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 53;
CURRENT_PROJECT_VERSION = 54;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand Down Expand Up @@ -1724,7 +1711,7 @@
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 8TW9V9HVES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 53;
DYLIB_CURRENT_VERSION = 54;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_MODULE_VERIFIER = YES;
EXCLUDED_ARCHS = "";
Expand Down Expand Up @@ -1771,7 +1758,7 @@
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 8TW9V9HVES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 53;
DYLIB_CURRENT_VERSION = 54;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_MODULE_VERIFIER = YES;
EXCLUDED_ARCHS = "";
Expand Down
4 changes: 2 additions & 2 deletions BeeSwift/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Gallery Navigation Controller-->
<!--Navigation Controller-->
<scene sceneID="qqJ-th-mte">
<objects>
<navigationController id="E0t-UY-3pO" customClass="GalleryNavigationController" customModule="BeeSwift" customModuleProvider="target" sceneMemberID="viewController">
<navigationController id="E0t-UY-3pO" sceneMemberID="viewController">
<navigationBar key="navigationBar" contentMode="scaleToFill" barStyle="black" translucent="NO" id="Pjd-c5-Ja5">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
Expand Down
11 changes: 11 additions & 0 deletions BeeSwift/Gallery/GalleryViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,17 @@ class GalleryViewController: UIViewController, UICollectionViewDelegateFlowLayou
}
}

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

self.collectionView!.snp.remakeConstraints { make in
make.top.equalTo(self.searchBar.snp.bottom)
make.left.equalTo(self.view.safeAreaLayoutGuide.snp.leftMargin)
make.right.equalTo(self.view.safeAreaLayoutGuide.snp.rightMargin)
make.bottom.equalTo(self.collectionView!.keyboardLayoutGuide.snp.top)
}
}

override func viewDidAppear(_ animated: Bool) {
if !ServiceLocator.currentUserManager.signedIn(context: ServiceLocator.persistentContainer.viewContext) {
let signInVC = SignInViewController()
Expand Down
2 changes: 1 addition & 1 deletion BeeSwift/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>53</string>
<string>54</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
Expand Down
87 changes: 1 addition & 86 deletions BeeSwift/SignInViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@ import SafariServices

import BeeKit

class SignInViewController : UIViewController, UITextFieldDelegate, SFSafariViewControllerDelegate {
class SignInViewController : UIViewController, UITextFieldDelegate {

var headerLabel = BSLabel()
var emailTextField = BSTextField()
var passwordTextField = BSTextField()
var newEmailTextField = BSTextField()
var newUsernameTextField = BSTextField()
var newPasswordTextField = BSTextField()
var chooseSignInButton = BSButton()
var chooseSignUpButton = BSButton()
var beeImageView = UIImageView()
var signUpButton = BSButton()
var backToSignInButton = BSButton()
var backToSignUpButton = BSButton()
var signInButton = BSButton()
var divider = UIView()

Expand Down Expand Up @@ -57,16 +49,6 @@ class SignInViewController : UIViewController, UITextFieldDelegate, SFSafariView
make.centerX.equalToSuperview()
}

scrollView.addSubview(self.chooseSignInButton)
self.chooseSignInButton.setTitle("I have a Beeminder account", for: .normal)
self.chooseSignInButton.snp.makeConstraints { (make) in
make.centerX.equalToSuperview()
make.top.equalTo(self.headerLabel.snp.bottom).offset(40)
make.width.equalToSuperview().multipliedBy(0.75)
make.height.equalTo(Constants.defaultTextFieldHeight)
}
self.chooseSignInButton.addTarget(self, action: #selector(SignInViewController.chooseSignInButtonPressed), for: .touchUpInside)

scrollView.addSubview(self.emailTextField)
self.emailTextField.isHidden = true
self.emailTextField.placeholder = "Email or username"
Expand Down Expand Up @@ -99,7 +81,6 @@ class SignInViewController : UIViewController, UITextFieldDelegate, SFSafariView
scrollView.addSubview(self.signInButton)
self.signInButton.isHidden = true
self.signInButton.setTitle("Sign In", for: UIControl.State())
self.signInButton.backgroundColor = UIColor.Beeminder.gray
self.signInButton.titleLabel?.font = UIFont.beeminder.defaultFontPlain.withSize(20)
self.signInButton.titleLabel?.textColor = UIColor.white
self.signInButton.addTarget(self, action: #selector(SignInViewController.signInButtonPressed), for: UIControl.Event.touchUpInside)
Expand All @@ -114,87 +95,21 @@ class SignInViewController : UIViewController, UITextFieldDelegate, SFSafariView
self.divider.isHidden = true
self.divider.backgroundColor = UIColor.Beeminder.gray

scrollView.addSubview(self.newUsernameTextField)
self.newUsernameTextField.isHidden = true
self.newUsernameTextField.autocapitalizationType = .none
self.newUsernameTextField.snp.makeConstraints { (make) in
make.top.equalTo(self.headerLabel.snp.bottom).offset(15)
make.centerX.equalTo(scrollView)
make.height.equalTo(Constants.defaultTextFieldHeight)
make.width.equalTo(self.view).multipliedBy(0.75)
}
self.newUsernameTextField.placeholder = "Username"

scrollView.addSubview(self.newEmailTextField)
self.newEmailTextField.isHidden = true
self.newEmailTextField.autocapitalizationType = .none
self.newEmailTextField.snp.makeConstraints { (make) in
make.top.equalTo(self.newUsernameTextField.snp.bottom).offset(15)
make.centerX.equalTo(scrollView)
make.height.equalTo(Constants.defaultTextFieldHeight)
make.width.equalTo(self.view).multipliedBy(0.75)
}
self.newEmailTextField.placeholder = "Email"

scrollView.addSubview(self.newPasswordTextField)
self.newPasswordTextField.isHidden = true
self.newPasswordTextField.autocapitalizationType = .none
self.newPasswordTextField.isSecureTextEntry = true
self.newPasswordTextField.snp.makeConstraints { (make) in
make.top.equalTo(self.newEmailTextField.snp.bottom).offset(15)
make.centerX.equalTo(scrollView)
make.height.equalTo(Constants.defaultTextFieldHeight)
make.width.equalTo(self.view).multipliedBy(0.75)
}

self.newPasswordTextField.placeholder = "Password"

scrollView.addSubview(self.signUpButton)
self.signUpButton.isHidden = true
self.signUpButton.setTitle("Sign Up", for: .normal)
self.signUpButton.titleLabel?.font = UIFont.beeminder.defaultFontPlain.withSize(20)
self.signUpButton.snp.makeConstraints { (make) in
make.top.equalTo(self.newPasswordTextField.snp.bottom).offset(15)
make.centerX.equalTo(self.view)
make.height.equalTo(Constants.defaultTextFieldHeight)
make.width.equalTo(self.view).multipliedBy(0.75)
}

scrollView.addSubview(self.backToSignInButton)
self.backToSignInButton.isHidden = true
self.backToSignInButton.setTitle("Back to Sign In", for: .normal)
self.backToSignInButton.snp.makeConstraints { (make) in
make.top.equalTo(divider.snp.bottom).offset(15)
make.height.equalTo(Constants.defaultTextFieldHeight)
make.centerX.equalTo(self.view)
make.width.equalTo(self.view).multipliedBy(0.75)
}
self.backToSignInButton.addTarget(self, action: #selector(SignInViewController.chooseSignInButtonPressed), for: .touchUpInside)
self.chooseSignInButtonPressed()
}

@objc func chooseSignInButtonPressed() {
//self.divider.isHidden = false
//self.backToSignUpButton.isHidden = false
self.emailTextField.isHidden = false
self.passwordTextField.isHidden = false
self.backToSignInButton.isHidden = true
self.newUsernameTextField.isHidden = true
self.newPasswordTextField.isHidden = true
self.newEmailTextField.isHidden = true
self.chooseSignInButton.isHidden = true
self.chooseSignUpButton.isHidden = true
self.headerLabel.text = "Sign in to Beeminder"
self.headerLabel.isHidden = false
self.signInButton.isHidden = false
self.signUpButton.isHidden = true
self.divider.snp.remakeConstraints { (make) -> Void in
make.left.equalTo(self.signInButton)
make.right.equalTo(self.signInButton)
make.height.equalTo(1)
make.top.equalTo(self.signInButton.snp.bottom).offset(15)
}

}

var missingDataOnSignIn: UIAlertController {
Expand Down
2 changes: 1 addition & 1 deletion BeeSwiftIntents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>6.7</string>
<key>CFBundleVersion</key>
<string>53</string>
<string>54</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
Expand Down
2 changes: 1 addition & 1 deletion BeeSwiftTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>53</string>
<string>54</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion BeeSwiftUITests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<key>CFBundleShortVersionString</key>
<string>6.7</string>
<key>CFBundleVersion</key>
<string>53</string>
<string>54</string>
</dict>
</plist>
26 changes: 23 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,33 @@
Changes to be released in next version
=================================================

✨ Features
*

🙌 Improvements
*

🐛 Bugfix
*

⚠️ API Changes
*

🧱 Build
*

Others
*

6.7 (2024-12-14)
=================================================

✨ Features
* Goals are searchable via Spotlight (#472)

🙌 Improvements
* Support dark mode and tint for app icon (#478)
* Add support for dark green for goals with 7 days of safety buffer (#535)
* Changes to the styling of some buttons and UI elements (#483, #488, #489, #492)
* Support webcredentials for password manager login (#449)
* Sort by urgency instead of deadline (#451)
Expand All @@ -20,9 +42,7 @@ Changes to be released in next version
* Add #THISWILLSELFDESTRUCT to list of points ignored for value suggestion (#457)
* UI Elements no longer overlap with notch/dyanmic island (#495)
* Fix issues with choosing wrong day shortly after midnight (#510)

⚠️ API Changes
*
* Goals are no longer hidden behind the keyboard when filtering (#536, #545)

🧱 Build
* Update RubyGem versions (#476, #509)
Expand Down

0 comments on commit 8270d23

Please sign in to comment.