Skip to content
  • 임현지 @limhyeonji ·

    Comparable프로토콜을 수행해야한다.

  • 임현지 @limhyeonji ·

    // @FetcheRequest 라는 property wrapper를 사용하면 데이터를 뷰에서 바로 사용 가능하다. // NSSortDescriptor 는 복수로 사용 가능하다.

    @FetchRequest(sortDescriptors: [NSSortDescriptor(keyPath: \BookEntity.isFavorite_, ascending: true)],
                    predicate: NSPredicate(format: "isFavorite_ == %@", NSNumber(true)),
                    animation: .default) var savedBooks: FetchedResults<BookEntity>
    Edited by 임현지
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment