Post

Replies

Boosts

Views

Activity

Issue with DatePicker in Xcode 14
If anyone else having issues with DatePicker. struct Date: View {     @State private var date = Date()        var body: some View {            VStack {                Text("Enter your birthday")                    .font(.largeTitle)                DatePicker("Enter your birthday", selection: $date)            }        }    } [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want.  Try this:  (1) look at each constraint and try to figure out which you don't expect;  (2) find the code that added the unwanted constraint or constraints and fix it.  (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)  (     "<NSAutoresizingMaskLayoutConstraint:0x600001798d20 h=--& v=--& _UIDatePickerCalendarTimeView:0x1431607a0.height == 0   (active)>",     "<NSLayoutConstraint:0x60000178eda0 _UIDatePickerCompactTimeLabel:0x143169260.centerY == _UIDatePickerCalendarTimeView:0x1431607a0.centerY - 1   (active)>",     "<NSLayoutConstraint:0x60000178edf0 V:|-(>=0)-[_UIDatePickerCompactTimeLabel:0x143169260]   (active, names: '|':_UIDatePickerCalendarTimeView:0x1431607a0 )>" ) Will attempt to recover by breaking constraint  <NSLayoutConstraint:0x60000178eda0 _UIDatePickerCompactTimeLabel:0x143169260.centerY == _UIDatePickerCalendarTimeView:0x1431607a0.centerY - 1   (active)>
2
0
2.0k
Sep ’22
Using emoji from keyboard
I am trying to use emoji from keyboard without coding any strings or images as I read it would still work. But I am getting this error. Anyone know an alternative way to use the keyboard emojis? 2022-09-09 The behavior of the UICollectionViewFlowLayout is not defined because: 2022-09-09 the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values. 2022-09-09 The relevant UICollectionViewFlowLayout instance is <_InvertibleFlowLayout: 0x12eeb8900>, and it is attached to <UICollectionView: 0x13011f000; frame = (0 0; 428 4); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x600003086bb0>; layer = <CALayer: 0x600003efa000>; contentOffset: {0, 0}; contentSize: {-153, 4}; adjustedContentInset: {0, 0, 0, 0}; layout: <_InvertibleFlowLayout: 0x12eeb8900>; dataSource: <__UIDiffableDataSource 0x600000173750: sectionCounts = [_UIDataSourceSnapshotter - 0x600003ebd360:(0:14)]; sections = [0x600003ebd400]; identifiers=[0x600003ebc660]>>. 2022-09-09 Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
0
0
516
Sep ’22