Comments (6)
I think this feature #1384 is not supported in all iOS versions...
from fuselibs.
Hi.. thanks for reporting, we will investigate it
from fuselibs.
@ichan-mb to solve the problem we need to modify iOS/DatePicker.uno
from line 153 to 198
to:
[Foreign(Language.ObjC)]
int GetDatePickerStyle(ObjC.Object datePickerHandle)
@{
if (@available(iOS 13.4, *)) {
UIDatePicker *dp = (UIDatePicker *)datePickerHandle;
UIDatePickerStyle style = dp.datePickerStyle;
switch(style)
{
case UIDatePickerStyleAutomatic:
return 0;
case UIDatePickerStyleCompact:
return 1;
case UIDatePickerStyleInline:
return 2;
case UIDatePickerStyleWheels:
return 3;
}
}else {
return 0;
}
@}
[Foreign(Language.ObjC)]
void SetDatePickerStyle(ObjC.Object datePickerHandle, int style)
@{
if (@available(iOS 13.4, *)) {
UIDatePicker *dp = (UIDatePicker *)datePickerHandle;
UIDatePickerStyle datePickerStyle = UIDatePickerStyleAutomatic;
switch (style)
{
case 0:
datePickerStyle = UIDatePickerStyleAutomatic;
break;
case 1:
datePickerStyle = UIDatePickerStyleCompact;
break;
case 2:
datePickerStyle = UIDatePickerStyleInline;
break;
case 3:
datePickerStyle = UIDatePickerStyleWheels;
break;
}
[dp setPreferredDatePickerStyle:datePickerStyle];
}
@}
basically add if (@available(iOS 13.4, *)) {
and else
from fuselibs.
yeah.. I've made PR hopefully to fix this issue
from fuselibs.
yeah.. I've made PR hopefully to fix this issue
This is not available yet in FuseX? How can implement it?
from fuselibs.
Solved by downloading Fuselibs and uno files and replacing it in the FuseX contents folder
from fuselibs.
Related Issues (20)
- Conection blocked HOT 10
- BringIntoView broken HOT 1
- Many androids device crash on start! HOT 7
- Unable to restrict orientation to portrait HOT 1
- Example app - exception to do with touch
- TextView bug (Integer Decimal Number) HOT 5
- Camera getParameters crashes
- Disable background location manifest
- Android - Text - RTL - TextAlignment HOT 2
- Android - TextInput - when not focused, text is invisible HOT 5
- Possible memory leak on Partial Paths - dotnet desktop
- Fuse.Launcher make not compatible to all only WIFI tablets HOT 3
- failed to create directory HOT 1
- CameraView EACCES (Permission denied) HOT 1
- Could not compile iOS project when -DMetal flag is set
- DatePicker Color dont't change
- ZoomGesture, PanGesture error
- Android 13 the Camera and CameraRoll module no longer works
- change the backend renderer - polyglot mdoel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuselibs.