Skip to content

Commit

Permalink
Fine Tune
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Mar 31, 2023
1 parent 1c15685 commit 5cacd9c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
13 changes: 7 additions & 6 deletions Kimis.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@
CODE_SIGN_ENTITLEMENTS = Kimis/Kimis.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 90;
CURRENT_PROJECT_VERSION = 100;
DEVELOPMENT_TEAM = 6CMYQQFFT8;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -1879,7 +1879,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.9;
MARKETING_VERSION = 1.10;
PRODUCT_BUNDLE_IDENTIFIER = wiki.qaq.kimis.inhouse;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand All @@ -1900,7 +1900,7 @@
CODE_SIGN_ENTITLEMENTS = Kimis/Kimis.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 90;
CURRENT_PROJECT_VERSION = 100;
DEVELOPMENT_TEAM = 6CMYQQFFT8;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -1918,7 +1918,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.9;
MARKETING_VERSION = 1.10;
PRODUCT_BUNDLE_IDENTIFIER = as.wiki.qaq.kimis;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -2030,8 +2030,9 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/hackiftekhar/IQKeyboardManager";
requirement = {
kind = exactVersion;
version = 6.5.10;
kind = versionRange;
maximumVersion = 999.999.999;
minimumVersion = 0.0.0;
};
};
50BED2242927802700C9D7E2 /* XCRemoteSwiftPackageReference "SPIndicator" */ = {
Expand Down
14 changes: 7 additions & 7 deletions Kimis.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/bugsnag/bugsnag-cocoa",
"state" : {
"revision" : "b260ddb5570883ee8fd35860d8d7ff381250d4a1",
"version" : "6.25.2"
"revision" : "5be1c4c544752c90774cf5b464683064a5bb1015",
"version" : "6.26.1"
}
},
{
Expand All @@ -24,16 +24,16 @@
"location" : "https://github.com/Wevah/IDNA-Cocoa.git",
"state" : {
"branch" : "master",
"revision" : "f41c84c2f97c6de137aa36f450defdefd229360e"
"revision" : "96de66e18f27edd40e41321f63637fbf2a83eb41"
}
},
{
"identity" : "iqkeyboardmanager",
"kind" : "remoteSourceControl",
"location" : "https://github.com/hackiftekhar/IQKeyboardManager",
"state" : {
"revision" : "9ab144a1a6c6ae8dad25840610c072709b15d8b5",
"version" : "6.5.10"
"revision" : "0ea3febb36cfcec2afb5841fd8809a9c0fa545b3",
"version" : "6.5.11"
}
},
{
Expand All @@ -59,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/SDWebImage/SDWebImage",
"state" : {
"revision" : "6c6b951845a520fa7e8356e28adb5339c0f008d3",
"version" : "5.15.0"
"revision" : "fb50c1d20f24db5322b2f8f379de3618f75fe08e",
"version" : "5.15.5"
}
},
{
Expand Down
1 change: 1 addition & 0 deletions Kimis/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
UINavigationBar.appearance().tintColor = .accent
IQKeyboardManager.shared.enable = true
IQKeyboardManager.shared.disabledDistanceHandlingClasses.append(PostEditorController.self)
prepareAppTasks()
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { result, error in
print("[*] request notification permission result \(result) \(error?.localizedDescription ?? "nil")")
Expand Down
3 changes: 1 addition & 2 deletions Kimis/Interface/Component/NoteView/NotePreviewSimple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class NotePreviewSimple: UIView {

static let spacing: CGFloat = 8
static let mainTextLimit: Int = 8
static let userTextLimit: Int = 2
static let userTextLimit: Int = 1

let avatar = AvatarView()
let userText = TextView(editable: false, selectable: false)
Expand All @@ -37,7 +37,6 @@ class NotePreviewSimple: UIView {
clipsToBounds = true

mainText.textContainer.maximumNumberOfLines = Self.mainTextLimit

userText.textContainer.maximumNumberOfLines = Self.userTextLimit

let views: [UIView] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ extension NotificationCell.MainCell.Snapshot {

let padding = IH.preferredPadding(usingWidth: width)
let tintSize = CGSize(width: 24, height: 24)
let avatarR = 40 + IH.preferredAvatarSizeOffset(usingWidth: width)
let avatarSize = CGSize(width: avatarR, height: avatarR) // two line of text ~= 41 point so
let avatarR = NotePreview.defaultAvatarSize + IH.preferredAvatarSizeOffset(usingWidth: width)
let avatarSize = CGSize(width: avatarR, height: avatarR)
let horizontalSpacing: CGFloat = 8
let verticalSpacing: CGFloat = 8

Expand Down

0 comments on commit 5cacd9c

Please sign in to comment.