Change the spinner position on the Splash Screen
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách đọc phần triển khai iOS trong SplashScreen.swift, đặc biệt là các constraint của spinner quanh dòng 128 và 164, sau đó tìm phần triển khai Android tương ứng và các tùy chọn của plugin trong capacitor.config.json. Xác định một cấu hình vị trí dùng chung hoạt động trên cả hai nền tảng, giữ nguyên hành vi safe-area trên iOS và xác minh rằng từng vị trí spinner được yêu cầu đều được áp dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Request
Plugin
Capacitor 3 Splash Screen
Description
Splash screen typically have a logo or other feature in the center of the screen. Currently the spinner on the Splash Screen plugin is fixed to the center horizontally and vertically. Being able to configure the spinner to appear elsewhere on the screen would be useful.
Platform(s)
iOS
Android
Preferred Solution
Add an option to capacitor.config.json to determine the position of the spinner, ie TOP CENTER, MIDDLE CENTER, BOTTOM CENTER, TOP LEFT, etc.
Alternatives
i've achieved this on iOS by changing Pods > Development Pods > Capacitor > Plugins > SplashScreen.swift lines 128 and 164 from
self.spinner.centerYAnchor.constraint(equalTo: view!.centerYAnchor).isActive = true
to
self.spinner.bottomAnchor.constraint(equalTo: view!.safeAreaLayoutGuide.bottomAnchor).isActive = true
This moves it to the bottom center - the addition of the .safeAreaLayoutGuide ensures it doesn't cover the gesture bar on iPhone 10+
I don't have a solution for Android yet, but Google searching suggests that can be changed in the .java file also.
Additional Context
Based on a post here https://github.com/ionic-team/capacitor/discussions/3508 and the suggestion to post this as a feature request.
- Ngôn ngữ chính
- Java
- Star
- 682
- Fork
- 689
- Merge trung bình
- 5 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ionic-team/capacitor-plugins
-
[@capacitor/app] iOS: 'Expression implicitly coerced from String? to Any' warning in getAppLanguageĐang mởtriage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
ionic-team/capacitor-plugins#2604 ·
-
platform: ios
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
ionic-team/capacitor-plugins#2603 · 1 bình luận ·
-
platform: android
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
ionic-team/capacitor-plugins#2599 ·
-
platform: ios
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
ionic-team/capacitor-plugins#2595 · 1 reaction ·
-
platform: android triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ionic-team/capacitor-plugins#2593 ·
Tất cả issue của ionic-team/capacitor-plugins
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
beehive-lab/TornadoVM#1151 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
(cbor) `maxStringLength` not consistently checked for chunked (indefinite-length) text valuesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
FasterXML/jackson-dataformats-binary#823 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày